X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..0bd6d7d8e87e1d538661b6167d0a5d99428dfc39:/src/catalogue/tests/cover.py diff --git a/src/catalogue/tests/cover.py b/src/catalogue/tests/cover.py index 0e08556b4..8c5d04718 100755 --- a/src/catalogue/tests/cover.py +++ b/src/catalogue/tests/cover.py @@ -39,15 +39,13 @@ class CoverTests(WLTestCase): # Now reimport parent. parent_cover_changed.reset_mock() - parent = Book.from_text_and_meta(ContentFile(self.TEXT), self.parent, - overwrite=True) + parent = Book.from_text_and_meta(ContentFile(self.TEXT), self.parent, overwrite=True) self.assertEqual(parent_cover_changed.call_count, 0) # Now change cover in parent. parent_cover_changed.reset_mock() self.parent.cover_url = "http://example.com/other-cover.jpg" - parent = Book.from_text_and_meta(ContentFile(self.TEXT), self.parent, - overwrite=True) + parent = Book.from_text_and_meta(ContentFile(self.TEXT), self.parent, overwrite=True) parent_cover_changed.assert_called_with(child) @patch.object(Book, 'parent_cover_changed', autospec=True) @@ -65,13 +63,11 @@ class CoverTests(WLTestCase): # Now import child and reimport parent. child = Book.from_text_and_meta(ContentFile(self.TEXT), self.child) self.parent.parts = parts - parent = Book.from_text_and_meta(ContentFile(self.TEXT), self.parent, - overwrite=True) + parent = Book.from_text_and_meta(ContentFile(self.TEXT), self.parent, overwrite=True) parent_cover_changed.assert_called_with(child) # Now remove the child. parent_cover_changed.reset_mock() self.parent.parts = [] - parent = Book.from_text_and_meta(ContentFile(self.TEXT), self.parent, - overwrite=True) + parent = Book.from_text_and_meta(ContentFile(self.TEXT), self.parent, overwrite=True) parent_cover_changed.assert_called_with(child)