Backport test improvements
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -1,19 +1,13 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.test import override_settings
|
||||
|
||||
from mayan.apps.common.tests import BaseTestCase, GenericViewTestCase
|
||||
|
||||
from .mixins import DocumentTestMixin
|
||||
|
||||
|
||||
@override_settings(DOCUMENT_PARSING_AUTO_PARSING=False)
|
||||
@override_settings(OCR_AUTO_OCR=False)
|
||||
class GenericDocumentTestCase(DocumentTestMixin, BaseTestCase):
|
||||
"""Base test case when testing models or classes"""
|
||||
|
||||
|
||||
@override_settings(DOCUMENT_PARSING_AUTO_PARSING=False)
|
||||
@override_settings(OCR_AUTO_OCR=False)
|
||||
class GenericDocumentViewTestCase(DocumentTestMixin, GenericViewTestCase):
|
||||
"""Base test case when testing views"""
|
||||
|
||||
Reference in New Issue
Block a user