mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
test(test-api): update existing tests for suggestions
This commit is contained in:
parent
a5d2ae2588
commit
a754c6047d
@ -1107,6 +1107,7 @@ class TestDocumentApi(DirectoriesMixin, APITestCase):
|
|||||||
"tags": [],
|
"tags": [],
|
||||||
"document_types": [],
|
"document_types": [],
|
||||||
"storage_paths": [],
|
"storage_paths": [],
|
||||||
|
"dates": [],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1128,7 +1129,7 @@ class TestDocumentApi(DirectoriesMixin, APITestCase):
|
|||||||
doc = Document.objects.create(
|
doc = Document.objects.create(
|
||||||
title="test",
|
title="test",
|
||||||
mime_type="application/pdf",
|
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)]
|
match_correspondents.return_value = [Correspondent(id=88), Correspondent(id=2)]
|
||||||
@ -1144,6 +1145,7 @@ class TestDocumentApi(DirectoriesMixin, APITestCase):
|
|||||||
"tags": [56, 123],
|
"tags": [56, 123],
|
||||||
"document_types": [23],
|
"document_types": [23],
|
||||||
"storage_paths": [99, 77],
|
"storage_paths": [99, 77],
|
||||||
|
"dates": ["2022-04-12"],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user