X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/46a90d7cfe54bb6df2f99175abd0ad7d26b3da72..2c0eb88678075e583641f4d1debe3bec2bfd0bf1:/apps/catalogue/tests/cover.py?ds=inline diff --git a/apps/catalogue/tests/cover.py b/apps/catalogue/tests/cover.py index 765c56b07..0e08556b4 100755 --- a/apps/catalogue/tests/cover.py +++ b/apps/catalogue/tests/cover.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.core.files.base import ContentFile from catalogue.test_utils import BookInfoStub, PersonStub, info_args, WLTestCase from catalogue.models import Book @@ -39,7 +42,7 @@ class CoverTests(WLTestCase): 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"