From e86bc013b20a0c72cc9212a2fe70b5b6ff7b69cf Mon Sep 17 00:00:00 2001 From: Joakim Soderlund Date: Wed, 15 May 2024 10:56:01 +0200 Subject: [PATCH] Fix two broken asserts in mapper tests --- tests/test_mappers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_mappers.py b/tests/test_mappers.py index 7c62bec..4c7bef5 100644 --- a/tests/test_mappers.py +++ b/tests/test_mappers.py @@ -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: