Instead of inserting the path of the apps into the Python app, the apps are now referenced by their full import path. This app name claves with external or native Python libraries. Example: Mayan statistics app vs. Python new statistics library. Every app reference is now prepended with 'mayan.apps'. Existing config.yml files need to be updated manually. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
22 lines
651 B
Python
22 lines
651 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
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"""
|