Answer stability round 1: 0 🔴, 5 🟡 (1 misread); keep locks out of compress-archives, count only a search's hits, show an unfinished failing run, and test the walk and the home

This commit is contained in:
2026-11-21 12:18:32 +01:00
parent 27e5014322
commit 101c8a7c3d
12 changed files with 118 additions and 71 deletions
@@ -70,6 +70,11 @@ class Main(unittest.TestCase):
self.assertEqual(out, "Compressed 4 files.\n")
self.assertEqual(self.run_main(), (0, "Compressed 0 files.\n", ""))
def test_keeps_a_lock_plain_however_old(self):
self.write(self.reviews / "task-bench.lock", OLD)
self.run_main()
self.assertEqual([path.name for path in self.reviews.glob("task-bench.lock*")], ["task-bench.lock"])
def test_keeps_a_file_last_written_exactly_30_days_ago_plain(self):
self.write(self.archive / "b.jsonl", 30 * DAY)
self.run_main()