This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user