mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-24 22:27:59 +01:00
Fix two broken asserts in mapper tests
This commit is contained in:
parent
01f3df1202
commit
e86bc013b2
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ class TestStoryDateMapper:
|
|||
m.side_effect = InvalidStoryError
|
||||
|
||||
assert mapper(story) is None
|
||||
assert m.called_once_with(story)
|
||||
m.assert_called_once_with()
|
||||
|
||||
def test_empty_meta(self, mapper, story):
|
||||
"""
|
||||
|
@ -277,7 +277,7 @@ class TestStoryPathMapper:
|
|||
story.key.__str__.return_value = 'key'
|
||||
|
||||
assert mapper(story) == Path('dir', 'key')
|
||||
assert story.key.__str__.called_once_with()
|
||||
story.key.__str__.assert_called_once_with()
|
||||
|
||||
|
||||
class TestStorySlugMapper:
|
||||
|
|
Loading…
Reference in a new issue