Got to update the tests too

This commit is contained in:
Trenton H
2026-01-28 14:33:48 -08:00
parent 7afc8ceb24
commit e101019924

View File

@@ -298,7 +298,7 @@ class TestRegexDateParser:
mocker.patch(target, side_effect=fake_parse) mocker.patch(target, side_effect=fake_parse)
results = list(parser.parse(Path(filename), content)) results = list(parser.parse(filename, content))
assert results == expected assert results == expected
for dt in results: for dt in results:
@@ -407,7 +407,7 @@ class TestRegexDateParser:
filename = "report-2023-12-25.txt" filename = "report-2023-12-25.txt"
content = "Event recorded on 25/12/2022." content = "Event recorded on 25/12/2022."
results = list(parser.parse(Path(filename), content)) results = list(parser.parse(filename, content))
# Only the content date should have been parsed -> one call # Only the content date should have been parsed -> one call
assert mock.call_count == 1 assert mock.call_count == 1