A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
more test
jonaswinkler5e1543bad537
diff --git a/src/documents/tests/test_sanity_check.py b/src/documents/tests/test_sanity_check.pyindex 995be7d6d..3dc59863b 100644--- a/src/documents/tests/test_sanity_check.py+++ b/src/documents/tests/test_sanity_check.py@@ -5,7 +5,7 @@ from pathlib import Pathfrom django.test import TestCasefrom documents.models import Document-from documents.sanity_checker import check_sanity+from documents.sanity_checker import check_sanity, SanityFailedErrorfrom documents.tests.utils import DirectoriesMixin@@ -81,3 +81,7 @@ class TestSanityCheck(DirectoriesMixin, TestCase):doc = self.make_test_data()Path(self.dirs.originals_dir, "orphaned").touch()self.assertEqual(len(check_sanity()), 1)++ def test_all(self):+ Document.objects.create(title="test", checksum="dgfhj", archive_checksum="dfhg", content="", pk=1, filename="0000001.pdf")+ string = str(SanityFailedError(check_sanity()))