From bc816ccddaeeacdf9148ed6beb587f8878b3a71f Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 12 Dec 2018 21:06:58 -0400 Subject: [PATCH] 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 --- mayan/apps/ocr/tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/ocr/tests/test_api.py b/mayan/apps/ocr/tests/test_api.py index 4a092b694b..5aa3e00fd6 100644 --- a/mayan/apps/ocr/tests/test_api.py +++ b/mayan/apps/ocr/tests/test_api.py @@ -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