From: Matthias Eck Date: Sat, 6 Aug 2022 11:02:08 +0000 (+0200) Subject: test(test-api): update existing tests for suggestions X-Git-Tag: v1.9.0-beta.rc1~27^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a754c6047de0a97eb5dabb43529fa7eb0136ff77;p=thirdparty%2Fpaperless-ngx.git test(test-api): update existing tests for suggestions --- diff --git a/src/documents/tests/test_api.py b/src/documents/tests/test_api.py index 38fe6f07b1..bf30615209 100644 --- a/src/documents/tests/test_api.py +++ b/src/documents/tests/test_api.py @@ -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"], }, )