Remove tests * imports

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-08-29 21:08:53 -04:00
parent 49979dede5
commit 58bcf20a46
127 changed files with 206 additions and 240 deletions

View File

@@ -2,20 +2,22 @@ from __future__ import unicode_literals
from django.contrib.auth import get_user_model
from django.core import management
from django.test import TestCase
from mayan.apps.common.tests.base import BaseTestCase
from mayan.apps.common.tests.utils import mute_stdout
from ..models import AutoAdminSingleton
class AutoAdminManagementCommandTestCase(TestCase):
class AutoAdminManagementCommandTestCase(BaseTestCase):
def setUp(self):
super(AutoAdminManagementCommandTestCase, self).setUp()
with mute_stdout():
management.call_command('createautoadmin')
def tearDown(self):
AutoAdminSingleton.objects.all().delete()
super(AutoAdminManagementCommandTestCase, self).tearDown()
def test_autoadmin_creation(self):
autoadmin = AutoAdminSingleton.objects.get()

View File

@@ -2,8 +2,7 @@ from __future__ import unicode_literals
import logging
from django.test import TestCase
from mayan.apps.common.tests.base import BaseTestCase
from mayan.apps.common.tests.utils import mute_stdout
from ..models import AutoAdminSingleton
@@ -12,7 +11,7 @@ from ..settings import setting_username
from .literals import TEST_ADMIN_USER_PASSWORD
class AutoAdminHandlerTestCase(TestCase):
class AutoAdminHandlerTestCase(BaseTestCase):
def test_post_admin_creation(self):
logging.disable(logging.INFO)

View File

@@ -1,7 +1,7 @@
from __future__ import unicode_literals
from mayan.apps.common.settings import setting_home_view
from mayan.apps.common.tests import GenericViewTestCase
from mayan.apps.common.tests.base import GenericViewTestCase
from mayan.apps.common.tests.utils import mute_stdout
from ..models import AutoAdminSingleton