Remove tests * imports
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user