Skip to content

Commit

Permalink
Fix two broken asserts in mapper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JockeTF committed May 15, 2024
1 parent bb02c33 commit 5650cfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_invalid_story(self, mapper, story):
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):
"""
Expand Down Expand Up @@ -277,7 +277,7 @@ def test_casts_values(self, tmpdir, story):
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:
Expand Down

0 comments on commit 5650cfd

Please sign in to comment.