Test fixes.
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 14 Apr 2020 14:08:12 +0000 (16:08 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Thu, 10 Sep 2020 12:15:11 +0000 (14:15 +0200)
src/api/tests/res/responses/books-child.json
src/api/tests/res/responses/books-grandchild.json
src/api/tests/res/responses/books-parent.json
src/api/tests/tests.py

index 27aaee7..7a752ee 100644 (file)
     "url": "http://testserver/katalog/lektura/child/",
     "cover": "", 
     "pdf": "", 
-    "simple_thumb": ""
+    "simple_thumb": "",
+    "translators": [],
+    "isbn_epub": null,
+    "isbn_mobi": null,
+    "isbn_pdf": null
+
 }
index 6638317..36f5dd1 100644 (file)
@@ -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
 }
index 6dc75a5..05c2a77 100644 (file)
@@ -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
 }
index f85a061..c9afad7 100644 (file)
@@ -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: