From c38810e06effc12db39094227b865f61f338e742 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 15 Nov 2026 02:41:41 +0100 Subject: [PATCH] Test that a chunk of two items replaces its own entry --- bin/touch_predictions/test_touch_predictions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/touch_predictions/test_touch_predictions.py b/bin/touch_predictions/test_touch_predictions.py index a52977b0..da510174 100644 --- a/bin/touch_predictions/test_touch_predictions.py +++ b/bin/touch_predictions/test_touch_predictions.py @@ -326,9 +326,9 @@ class EntryTest(unittest.TestCase): def test_replaces_the_entry_of_the_same_items_and_keeps_the_others(self) -> None: store = MemoryStore("") - for items, head in (([5], "aaaaaaa"), ([5, 6], "bbbbbbb"), ([7], "ccccccc"), ([5], "ddddddd")): + for items, head in (([5], "aaaaaaa"), ([5, 6], "bbbbbbb"), ([7], "ccccccc"), ([5], "ddddddd"), ([5, 6], "eeeeeee")): record.append(store, items, record.entry(items, "2026-11-15T10:00:00Z", head, None, {})) - self.assertEqual([line.split(" at ")[1] for line in store.text.splitlines() if line.startswith("## ")], ["bbbbbbb", "ccccccc", "ddddddd"]) + self.assertEqual([line.split(" at ")[1] for line in store.text.splitlines() if line.startswith("## ")], ["ccccccc", "ddddddd", "eeeeeee"]) self.assertEqual(store.text.count("\n\n\n"), 0) def test_a_record_that_cannot_be_read_is_a_failure(self) -> None: