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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user