OCR: Turn off parsing in OCR tests properly

The document parsing was being turned off in the OCR tests
by setting the binary to an invalid value. A proper way
to disable automatic parsing was added in a previous commit
and this commit updates the test case class to use that method.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-12 21:06:58 -04:00
parent c7dec2ee09
commit bc816ccdda

View File

@@ -15,7 +15,7 @@ TEST_DOCUMENT_CONTENT = 'Mayan EDMS Documentation'
@override_settings(OCR_AUTO_OCR=False)
@override_settings(DOCUMENT_PARSING_PDFTOTEXT_PATH='')
@override_settings(DOCUMENT_PARSING_AUTO_PARSING=False)
class OCRAPITestCase(DocumentTestMixin, BaseAPITestCase):
"""
Test the OCR app API endpoints