diff --git a/mayan/apps/document_parsing/tests/test_api.py b/mayan/apps/document_parsing/tests/test_api.py index d1d1e155c7..66a109e261 100644 --- a/mayan/apps/document_parsing/tests/test_api.py +++ b/mayan/apps/document_parsing/tests/test_api.py @@ -13,6 +13,7 @@ TEST_DOCUMENT_CONTENT = 'Sample text' @override_settings(OCR_AUTO_OCR=False) +@override_settings(DOCUMENT_PARSING_AUTO_PARSING=True) class DocumentParsingAPITestCase(DocumentTestMixin, BaseAPITestCase): test_document_filename = TEST_HYBRID_DOCUMENT diff --git a/mayan/apps/ocr/tests/test_models.py b/mayan/apps/ocr/tests/test_models.py index 324ce44d61..4bc8add466 100644 --- a/mayan/apps/ocr/tests/test_models.py +++ b/mayan/apps/ocr/tests/test_models.py @@ -2,6 +2,8 @@ from __future__ import unicode_literals +from django.test import override_settings + from mayan.apps.common.tests import BaseTestCase from mayan.apps.documents.models import DocumentType from mayan.apps.documents.runtime import language_choices @@ -14,6 +16,7 @@ TEST_DOCUMENT_CONTENT_DEU_1 = 'Repository für elektronische Dokumente.' TEST_DOCUMENT_CONTENT_DEU_2 = 'Es bietet einen' +@override_settings(OCR_AUTO_OCR=True) class DocumentOCRTestCase(DocumentTestMixin, BaseTestCase): # PyOCR's leak descriptor in get_available_languages and image_to_string # Disable descriptor leak test until fixed in upstream @@ -24,6 +27,7 @@ class DocumentOCRTestCase(DocumentTestMixin, BaseTestCase): self.assertTrue(TEST_DOCUMENT_CONTENT in content) +@override_settings(OCR_AUTO_OCR=True) class GermanOCRSupportTestCase(BaseTestCase): # PyOCR's leak descriptor in get_available_languages and image_to_string # Disable descriptor leak test until fixed in upstream