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()