From: Radek Czajka Date: Tue, 14 Apr 2020 14:08:12 +0000 (+0200) Subject: Test fixes. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/2a54a1a2eaf66e7d65dcfbb6023a9ebc0ef138a0 Test fixes. --- diff --git a/src/api/tests/res/responses/books-child.json b/src/api/tests/res/responses/books-child.json index 27aaee713..7a752ee27 100644 --- a/src/api/tests/res/responses/books-child.json +++ b/src/api/tests/res/responses/books-child.json @@ -66,5 +66,10 @@ "url": "http://testserver/katalog/lektura/child/", "cover": "", "pdf": "", - "simple_thumb": "" + "simple_thumb": "", + "translators": [], + "isbn_epub": null, + "isbn_mobi": null, + "isbn_pdf": null + } diff --git a/src/api/tests/res/responses/books-grandchild.json b/src/api/tests/res/responses/books-grandchild.json index 6638317b0..36f5dd12a 100644 --- a/src/api/tests/res/responses/books-grandchild.json +++ b/src/api/tests/res/responses/books-grandchild.json @@ -48,5 +48,9 @@ "url": "http://testserver/katalog/lektura/grandchild/", "cover": "", "pdf": "http://testserver/media/pdf/grandchild.pdf", - "simple_thumb": "" + "simple_thumb": "", + "translators": [], + "isbn_epub": null, + "isbn_mobi": null, + "isbn_pdf": null } diff --git a/src/api/tests/res/responses/books-parent.json b/src/api/tests/res/responses/books-parent.json index 6dc75a5bd..05c2a77a5 100644 --- a/src/api/tests/res/responses/books-parent.json +++ b/src/api/tests/res/responses/books-parent.json @@ -76,6 +76,7 @@ "slug": "john-doe" } ], + "translators": [], "audio_length": "1:00", "epub": "http://testserver/media/epub/parent.epub", "cover_thumb": "http://testserver/media/cover/parent.jpg-139x193", @@ -83,5 +84,8 @@ "url": "http://testserver/katalog/lektura/parent/", "cover": "http://testserver/media/cover/parent.jpg", "pdf": "http://testserver/media/pdf/parent.pdf", - "simple_thumb": "http://testserver/media/cover_api_thumb/parent.jpg" + "simple_thumb": "http://testserver/media/cover_api_thumb/parent.jpg", + "isbn_epub": null, + "isbn_mobi": null, + "isbn_pdf": null } diff --git a/src/api/tests/tests.py b/src/api/tests/tests.py index f85a061b0..c9afad7b0 100644 --- a/src/api/tests/tests.py +++ b/src/api/tests/tests.py @@ -29,6 +29,8 @@ from api.models import Consumer, Token 'BACKEND': 'django.core.cache.backends.dummy.DummyCache'}}, ) class ApiTest(TestCase): + maxDiff = None + def load_json(self, url): content = self.client.get(url).content try: