Fix two broken asserts in mapper tests

This commit is contained in:
Joakim Soderlund 2024-05-15 10:56:01 +02:00
parent 01f3df1202
commit e86bc013b2

View file

@ -102,7 +102,7 @@ class TestStoryDateMapper:
m.side_effect = InvalidStoryError m.side_effect = InvalidStoryError
assert mapper(story) is None assert mapper(story) is None
assert m.called_once_with(story) m.assert_called_once_with()
def test_empty_meta(self, mapper, story): def test_empty_meta(self, mapper, story):
""" """
@ -277,7 +277,7 @@ class TestStoryPathMapper:
story.key.__str__.return_value = 'key' story.key.__str__.return_value = 'key'
assert mapper(story) == Path('dir', 'key') assert mapper(story) == Path('dir', 'key')
assert story.key.__str__.called_once_with() story.key.__str__.assert_called_once_with()
class TestStorySlugMapper: class TestStorySlugMapper: