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