2016-09-28 03:37:32 +08:00
|
|
|
from __future__ import unicode_literals
|
2013-06-18 08:10:21 +08:00
|
|
|
|
2013-05-18 23:43:21 +08:00
|
|
|
from django.contrib.auth.models import User
|
2013-12-23 23:01:13 +08:00
|
|
|
from django.test import TestCase, modify_settings, override_settings
|
2014-02-24 02:56:21 +08:00
|
|
|
|
2013-05-18 23:43:21 +08:00
|
|
|
|
2015-02-23 08:53:57 +08:00
|
|
|
class TestDataMixin(object):
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpTestData(cls):
|
2016-02-06 04:56:52 +08:00
|
|
|
cls.superuser = User.objects.create_superuser(username='super', password='secret', email='super@example.com')
|
2015-02-23 08:53:57 +08:00
|
|
|
|
|
|
|
|
2016-02-06 04:56:52 +08:00
|
|
|
@override_settings(ROOT_URLCONF='admin_docs.urls')
|
2014-06-22 00:27:46 +08:00
|
|
|
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.admindocs'})
|
|
|
|
class AdminDocsTestCase(TestCase):
|
|
|
|
pass
|