diff --git a/mayan/apps/document_signatures/tests.py b/mayan/apps/document_signatures/tests.py index bae109e052..356cada137 100644 --- a/mayan/apps/document_signatures/tests.py +++ b/mayan/apps/document_signatures/tests.py @@ -4,7 +4,7 @@ import os from django.conf import settings from django.core.files.base import File -from django.utils import unittest +from django.test import TestCase from documents.literals import VERSION_UPDATE_MAJOR, RELEASE_LEVEL_FINAL from documents.models import Document, DocumentType @@ -19,7 +19,7 @@ TEST_SIGNATURE_FILE_PATH = os.path.join(settings.BASE_DIR, 'contrib', 'sample_do TEST_KEY_FILE = os.path.join(settings.BASE_DIR, 'contrib', 'sample_documents', 'key0x5F3F7F75D210724D.asc') -class DocumentTestCase(unittest.TestCase): +class DocumentTestCase(TestCase): def setUp(self): self.document_type = DocumentType(name='test doc type') self.document_type.save() diff --git a/mayan/apps/documents/tests.py b/mayan/apps/documents/tests.py index 58d8dd73b2..b6eebdd608 100644 --- a/mayan/apps/documents/tests.py +++ b/mayan/apps/documents/tests.py @@ -7,7 +7,7 @@ from django.contrib.auth.models import User from django.core.files.base import File from django.core.urlresolvers import reverse from django.test.client import Client -from django.utils import unittest +from django.test import TestCase from .literals import VERSION_UPDATE_MAJOR, RELEASE_LEVEL_FINAL from .models import Document, DocumentType @@ -19,7 +19,7 @@ TEST_DOCUMENT_PATH = os.path.join(settings.BASE_DIR, 'contrib', 'sample_document TEST_SIGNED_DOCUMENT_PATH = os.path.join(settings.BASE_DIR, 'contrib', 'sample_documents', 'mayan_11_1.pdf.gpg') -class DocumentTestCase(unittest.TestCase): +class DocumentTestCase(TestCase): def setUp(self): self.document_type = DocumentType(name='test doc type') self.document_type.save() @@ -76,7 +76,7 @@ class DocumentTestCase(unittest.TestCase): self.document_type.delete() -class DocumentSearchTestCase(unittest.TestCase): +class DocumentSearchTestCase(TestCase): def setUp(self): from ocr.parsers import parse_document_page self.document_type = DocumentType(name='test doc type') @@ -127,7 +127,7 @@ class DocumentSearchTestCase(unittest.TestCase): self.document_type.delete() -class DocumentUploadFunctionalTestCase(unittest.TestCase): +class DocumentUploadFunctionalTestCase(TestCase): def setUp(self): from history.api import register_history_type diff --git a/mayan/apps/folders/tests.py b/mayan/apps/folders/tests.py index 853b871ab7..9840f50ad8 100644 --- a/mayan/apps/folders/tests.py +++ b/mayan/apps/folders/tests.py @@ -5,7 +5,7 @@ import os from django.conf import settings from django.contrib.auth.models import User from django.core.files.base import File -from django.utils import unittest +from django.test import TestCase from documents.models import Document, DocumentType @@ -14,7 +14,7 @@ from .models import Folder TEST_DOCUMENT_PATH = os.path.join(settings.BASE_DIR, 'contrib', 'sample_documents', 'mayan_11_1.pdf') -class FolderTestCase(unittest.TestCase): +class FolderTestCase(TestCase): def setUp(self): self.document_type = DocumentType(name='test doc type') self.document_type.save() diff --git a/mayan/apps/ocr/tests.py b/mayan/apps/ocr/tests.py index 15b8cd7ce1..1579aedaac 100644 --- a/mayan/apps/ocr/tests.py +++ b/mayan/apps/ocr/tests.py @@ -4,7 +4,7 @@ import os from django.conf import settings from django.core.files.base import File -from django.utils import unittest +from django.test import TestCase from documents.models import Document, DocumentType @@ -14,7 +14,7 @@ from .models import DocumentQueue, QueueDocument TEST_DOCUMENT_PATH = os.path.join(settings.BASE_DIR, 'contrib', 'sample_documents', 'title_page.png') -class DocumentSearchTestCase(unittest.TestCase): +class DocumentSearchTestCase(TestCase): def setUp(self): # Start the OCR queue self.default_queue = DocumentQueue.objects.get(name='default') diff --git a/mayan/apps/tags/tests.py b/mayan/apps/tags/tests.py index 5bfa723402..0c72f04ff2 100644 --- a/mayan/apps/tags/tests.py +++ b/mayan/apps/tags/tests.py @@ -1,4 +1,4 @@ -from django.utils import unittest +from django.test import TestCase from taggit.models import Tag @@ -6,7 +6,7 @@ from .literals import COLOR_RED from .models import TagProperties -class TagTestCase(unittest.TestCase): +class TagTestCase(TestCase): def setUp(self): self.tag = Tag(name='test') self.tag.save()