X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/64af15fe792f42d3a7dc3e857a45577d16806255..3efaf2dda390ed91cdba771a490b7c81a9d292a2:/src/catalogue/tests/test_visit.py diff --git a/src/catalogue/tests/test_visit.py b/src/catalogue/tests/test_visit.py index c170c00b4..83d5e0bdc 100644 --- a/src/catalogue/tests/test_visit.py +++ b/src/catalogue/tests/test_visit.py @@ -1,4 +1,3 @@ -# -*- 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. # @@ -14,7 +13,7 @@ class VisitTest(WLTestCase): WLTestCase.setUp(self) author = PersonStub(("Jane",), "Doe") book_info = BookInfoStub(author=author, genre="Sielanka", - epoch='Epoch', kind="Kind", **info_args(u"A book")) + epoch='Epoch', kind="Kind", **info_args("A book")) self.book = models.Book.from_text_and_meta(ContentFile(''' @@ -47,12 +46,6 @@ class VisitTest(WLTestCase): 'daisy/', # 'autor/jane-doe/gatunek/genre/', # 'autor/jane-doe/gatunek/genre/motyw/sielanka/', - 'b/%d/mini.pl.html' % self.book.pk, - 'b/%d/mini_nolink.pl.html' % self.book.pk, - 'b/%d/short.pl.html' % self.book.pk, - 'b/%d/wide.pl.html' % self.book.pk, - 'f/%d/promo.pl.html' % self.book.fragments.all()[0].pk, - 'f/%d/short.pl.html' % self.book.fragments.all()[0].pk, ], 404: [ 'lektury/nonexistent/', # Nonexistent Collection. @@ -63,12 +56,6 @@ class VisitTest(WLTestCase): 'autor/nonexistent/', # Nonexistent author. 'motyw/nonexistent/', # Nonexistent theme. 'zh.json', # Nonexistent language. - 'b/%d/mini.pl.html' % (self.book.pk + 100), # Nonexistent book. - 'b/%d/mini_nolink.pl.html' % (self.book.pk + 100), # Nonexistent book. - 'b/%d/short.pl.html' % (self.book.pk + 100), # Nonexistent book. - 'b/%d/wide.pl.html' % (self.book.pk + 100), # Nonexistent book. - 'f/%d/promo.pl.html' % (self.book.fragments.all()[0].pk + 100), # Nonexistent fragment. - 'f/%d/short.pl.html' % (self.book.fragments.all()[0].pk + 100), # Nonexistent fragment. ] } prefix = '/katalog/'