A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
test fixes and changelog
jonaswinkler657c41ab3777
diff --git a/docs/changelog.rst b/docs/changelog.rstindex 5380ce49b..5ded39699 100644--- a/docs/changelog.rst+++ b/docs/changelog.rst@@ -27,6 +27,10 @@ paperless-ng 0.9.5based on the sub folders a document was found in. This can be configured with ``PAPERLESS_CONSUMER_RECURSIVE`` and``PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS``.+* Fixes:++ * A bug with the generation of filenames for files with unsupported types caused the exporter and+ document saving to crash.paperless-ng 0.9.4##################diff --git a/src/documents/tests/test_parsers.py b/src/documents/tests/test_parsers.pyindex 27791f992..805e4beac 100644--- a/src/documents/tests/test_parsers.py+++ b/src/documents/tests/test_parsers.py@@ -111,7 +111,8 @@ class TestParserAvailability(TestCase):self.assertEqual(get_default_file_extension('image/jpeg'), ".jpg")self.assertEqual(get_default_file_extension('text/plain'), ".txt")self.assertEqual(get_default_file_extension('text/csv'), ".csv")- self.assertEqual(get_default_file_extension('aasdasd/dgfgf'), None)+ self.assertEqual(get_default_file_extension('application/zip'), ".zip")+ self.assertEqual(get_default_file_extension('aasdasd/dgfgf'), "")self.assertEqual(get_parser_class_for_mime_type('application/pdf'), RasterisedDocumentParser)self.assertEqual(get_parser_class_for_mime_type('text/plain'), TextDocumentParser)