]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
test(test-api): update existing tests for suggestions
authorMatthias Eck <matthias.eck93@gmail.com>
Sat, 6 Aug 2022 11:02:08 +0000 (13:02 +0200)
committerMatthias Eck <matthias.eck93@gmail.com>
Sat, 6 Aug 2022 11:03:20 +0000 (13:03 +0200)
src/documents/tests/test_api.py

index 38fe6f07b1704e445b7c8b877d5cc7ae2b426f73..bf30615209258bdb3dccc78348cf272b645a8a84 100644 (file)
@@ -1107,6 +1107,7 @@ class TestDocumentApi(DirectoriesMixin, APITestCase):
                 "tags": [],
                 "document_types": [],
                 "storage_paths": [],
+                "dates": [],
             },
         )
 
@@ -1128,7 +1129,7 @@ class TestDocumentApi(DirectoriesMixin, APITestCase):
         doc = Document.objects.create(
             title="test",
             mime_type="application/pdf",
-            content="this is an invoice!",
+            content="this is an invoice from 12.04.2022!",
         )
 
         match_correspondents.return_value = [Correspondent(id=88), Correspondent(id=2)]
@@ -1144,6 +1145,7 @@ class TestDocumentApi(DirectoriesMixin, APITestCase):
                 "tags": [56, 123],
                 "document_types": [23],
                 "storage_paths": [99, 77],
+                "dates": ["2022-04-12"],
             },
         )