From 28766a2814eb0cfa8ea8aa1df3dce2e10ce74960 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 01:02:35 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1;=20test=20that=20an=20unreadab?= =?UTF-8?q?le=20project=20is=20skipped=20and=20named?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/routing_figures/test_routing_figures.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/routing_figures/test_routing_figures.py b/bin/routing_figures/test_routing_figures.py index 0aeca0fc..3763a7ed 100644 --- a/bin/routing_figures/test_routing_figures.py +++ b/bin/routing_figures/test_routing_figures.py @@ -201,7 +201,11 @@ class Archive(unittest.TestCase): def test_skips_a_chunk_it_cannot_read_and_names_it(self): self.chunk("log", "c1", stamped("2026-10-14T10:00:00Z", outcomes.finished(LOW_ROUTE, "m")), []) (self.root / "log" / "c1" / "copy.jsonl").unlink() - self.assertEqual(archive.measure_archive(self.root, "/h", ""), archive.Measured([], ("log/c1",))) + self.chunk("other", "c2", stamped("2026-10-14T10:00:00Z", outcomes.finished(LOW_ROUTE, "m")), [message("m1", "2026-10-14T09:00:00Z")]) + self.chunk("broken", "c3", "", []) + (self.root / "broken" / "c3" / "copy.outcomes.md").write_bytes(b"\xff") + found = archive.measure_archive(self.root, "/h", "") + self.assertEqual((len(found.chunks), found.skipped), (1, ("broken", "log/c1"))) self.assertIn("## Chunks skipped, unreadable\n\n- log/c1\n", render(totals([], ("log/c1",)), [], "2026-10-15T00:00:00Z", 20, "")) def test_keeps_the_figures_and_reads_back_the_cycle_they_were_measured_at(self):