X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..4ddb93217b0476206908c0f2b4a66989631bdef3:/src/catalogue/tests/visit.py diff --git a/src/catalogue/tests/visit.py b/src/catalogue/tests/visit.py index cab3c987d..0edccd096 100644 --- a/src/catalogue/tests/visit.py +++ b/src/catalogue/tests/visit.py @@ -45,7 +45,6 @@ class VisitTest(WLTestCase): 'autor/jane-doe/', 'autor/jane-doe/gatunek/genre/', 'autor/jane-doe/gatunek/genre/motyw/theme/', - 'pl.json', '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, @@ -75,6 +74,6 @@ class VisitTest(WLTestCase): for url in urls: print(url) status = self.client.get(prefix + url).status_code - self.assertEqual(status, expected_status, - "Wrong status code for '%s'. Expected %d, got %d." % ( - prefix + url, expected_status, status)) + self.assertEqual( + status, expected_status, + "Wrong status code for '%s'. Expected %d, got %d." % (prefix + url, expected_status, status))