A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Merge branch 'dev' into feature-ocrmypdf
jonaswinkler24b8c358cc2e
diff --cc Pipfileindex 84c09d137,ee25c5682..2e05d8935--- a/Pipfile+++ b/Pipfile@@@ -37,8 -38,7 +37,8 @@@ scikit-learn="~=0.23.2whitenoise = "~=5.2.0"watchdog = "*"whoosh="~=2.7.4"- inotify-simple = "*"+ inotifyrecursive = ">=0.3.4"+ocrmypdf = "*"[dev-packages]coveralls = "*"diff --cc src/documents/tests/test_consumer.pyindex 08b9ca39a,8217bf0cf..99801923f--- a/src/documents/tests/test_consumer.py+++ b/src/documents/tests/test_consumer.py@@@ -434,17 -432,10 +434,18 @@@ class TestConsumer(DirectoriesMixin, Teself.consumer = Consumer()def get_test_file(self):- fd, f = tempfile.mkstemp(suffix=".pdf", dir=self.dirs.scratch_dir)- return f+ src = os.path.join(os.path.dirname(__file__), "samples", "documents", "originals", "0000001.pdf")+ dst = os.path.join(self.dirs.scratch_dir, "sample.pdf")+ shutil.copy(src, dst)+ return dst++ def get_test_archive_file(self):+ src = os.path.join(os.path.dirname(__file__), "samples", "documents", "archive", "0000001.pdf")+ dst = os.path.join(self.dirs.scratch_dir, "sample_archive.pdf")+ shutil.copy(src, dst)+ return dst+ @override_settings(PAPERLESS_FILENAME_FORMAT=None)def testNormalOperation(self):filename = self.get_test_file()