diff --git a/src/paperless_tesseract/tests/test_parser.py b/src/paperless_tesseract/tests/test_parser.py index 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)