A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Modify test for PNG image with alpha
Martin Müller73a8569d2111
diff --git a/src/paperless_tesseract/tests/test_parser.py b/src/paperless_tesseract/tests/test_parser.pyindex e39f87017..1ee295edf 100644--- a/src/paperless_tesseract/tests/test_parser.py+++ b/src/paperless_tesseract/tests/test_parser.py@@ -181,13 +181,14 @@ class TestParser(DirectoriesMixin, TestCase):self.assertContainsStrings(parser.get_text(), ["This is a test document."])- def test_image_simple_alpha_fail(self):+ def test_image_simple_alpha(self):parser = RasterisedDocumentParser(None)- def f():- parser.parse(os.path.join(self.SAMPLE_FILES, "simple-alpha.png"), "image/png")+ parser.parse(os.path.join(self.SAMPLE_FILES, "simple-alpha.png"), "image/png")- self.assertRaises(ParseError, f)+ self.assertTrue(os.path.isfile(parser.archive_path))++ self.assertContainsStrings(parser.get_text(), ["This is a test document."])def test_image_calc_a4_dpi(self):parser = RasterisedDocumentParser(None)