2013-05-18 15:43:21 +00:00
|
|
|
from django.contrib.auth.models import User
|
2022-02-03 19:24:19 +00:00
|
|
|
from django.test import SimpleTestCase, TestCase, modify_settings, override_settings
|
2014-02-23 18:56:21 +00:00
|
|
|
|
2013-05-18 15:43:21 +00:00
|
|
|
|
2017-01-19 07:39:46 +00:00
|
|
|
class TestDataMixin:
|
2015-02-23 00:53:57 +00:00
|
|
|
@classmethod
|
|
|
|
def setUpTestData(cls):
|
2022-02-03 19:24:19 +00:00
|
|
|
cls.superuser = User.objects.create_superuser(
|
|
|
|
username="super", password="secret", email="super@example.com"
|
|
|
|
)
|
2015-02-23 00:53:57 +00:00
|
|
|
|
|
|
|
|
2022-02-03 19:24:19 +00:00
|
|
|
@override_settings(ROOT_URLCONF="admin_docs.urls")
|
|
|
|
@modify_settings(INSTALLED_APPS={"append": "django.contrib.admindocs"})
|
2018-11-26 19:05:02 +00:00
|
|
|
class AdminDocsSimpleTestCase(SimpleTestCase):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-02-03 19:24:19 +00:00
|
|
|
@override_settings(ROOT_URLCONF="admin_docs.urls")
|
|
|
|
@modify_settings(INSTALLED_APPS={"append": "django.contrib.admindocs"})
|
2014-06-21 16:27:46 +00:00
|
|
|
class AdminDocsTestCase(TestCase):
|
|
|
|
pass
|