fixed most of the tests

This commit is contained in:
Jonas Winkler
2020-11-02 19:42:23 +01:00
parent 3a08a2d206
commit f182709fdd
3 changed files with 22 additions and 52 deletions

View File

@@ -62,10 +62,6 @@ class TestOCR(TestCase):
)
@skipIf(not TESSERACT_INSTALLED, "Tesseract not installed. Skipping")
@mock.patch(
"paperless_tesseract.parsers.RasterisedDocumentParser.SCRATCH",
SAMPLE_FILES
)
@mock.patch("paperless_tesseract.parsers.pyocr", FakePyOcr)
def test_image_to_string_with_text_free_page(self):
"""
@@ -77,4 +73,4 @@ class TestOCR(TestCase):
text-free pages are now handled correctly so long as we work around
this weird exception.
"""
image_to_string(["no-text.png", "en"])
image_to_string([os.path.join(self.SAMPLE_FILES, "no-text.png"), "en"])