A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
added a test case for the index
Jonas Winklerea089de3b3e1
diff --git a/src/documents/tests/test_index.py b/src/documents/tests/test_index.pynew file mode 100644index 000000000..830fca0e0--- /dev/null+++ b/src/documents/tests/test_index.py@@ -0,0 +1,14 @@+from django.test import TestCase++from documents.index import JsonFormatter+++class JsonFormatterTest(TestCase):++ def setUp(self) -> None:+ self.formatter = JsonFormatter()++ def test_empty_fragments(self):+ self.assertListEqual(self.formatter.format([]), [])++