A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
fix(parsers|test_api): fix failed tests
Matthias Eck3d0a26fdb179
diff --git a/src/documents/parsers.py b/src/documents/parsers.pyindex 26a4e11c6..f62199677 100644--- a/src/documents/parsers.py+++ b/src/documents/parsers.py@@ -7,6 +7,7 @@ import shutilimport subprocessimport tempfilefrom typing import Iterator+from typing import Matchfrom typing import Optionalfrom typing import Set@@ -252,7 +253,7 @@ def parse_date_generator(filename, text) -> Iterator[datetime.datetime]:return Nonedef __process_match(- match: re.Match[str],+ match: Match[str],date_order: str,) -> Optional[datetime.datetime]:date_string = match.group(0)diff --git a/src/documents/tests/test_api.py b/src/documents/tests/test_api.pyindex bf3061520..b6fa69699 100644--- a/src/documents/tests/test_api.py+++ b/src/documents/tests/test_api.py@@ -1119,6 +1119,7 @@ class TestDocumentApi(DirectoriesMixin, APITestCase):@mock.patch("documents.views.match_document_types")@mock.patch("documents.views.match_tags")@mock.patch("documents.views.match_correspondents")+ @override_settings(NUMBER_OF_SUGGESTED_DATES=10)def test_get_suggestions(self,match_correspondents,