From bd8487848a2fee6da32dcea7475ecc0e95133493 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 7 Jul 2015 03:01:42 -0400 Subject: [PATCH] Disable OCR, not unsed in this test. --- mayan/apps/sources/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mayan/apps/sources/tests.py b/mayan/apps/sources/tests.py index 61e7ac075f..73bdde8138 100644 --- a/mayan/apps/sources/tests.py +++ b/mayan/apps/sources/tests.py @@ -31,6 +31,10 @@ class UploadDocumentTestCase(TestCase): def setUp(self): self.document_type = DocumentType.objects.create(name=TEST_DOCUMENT_TYPE) + ocr_settings = self.document_type.ocr_settings + ocr_settings.auto_ocr = False + ocr_settings.save() + self.admin_user = User.objects.create_superuser(username=TEST_ADMIN_USERNAME, email=TEST_ADMIN_EMAIL, password=TEST_ADMIN_PASSWORD) self.client = Client()