mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Switched TestCase to SimpleTestCase where possible in Django's tests.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
from django.contrib.auth.models import User
|
||||
from django.test import TestCase, modify_settings, override_settings
|
||||
from django.test import (
|
||||
SimpleTestCase, TestCase, modify_settings, override_settings,
|
||||
)
|
||||
|
||||
|
||||
class TestDataMixin:
|
||||
@@ -9,6 +11,12 @@ class TestDataMixin:
|
||||
cls.superuser = User.objects.create_superuser(username='super', password='secret', email='super@example.com')
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='admin_docs.urls')
|
||||
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.admindocs'})
|
||||
class AdminDocsSimpleTestCase(SimpleTestCase):
|
||||
pass
|
||||
|
||||
|
||||
@override_settings(ROOT_URLCONF='admin_docs.urls')
|
||||
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.admindocs'})
|
||||
class AdminDocsTestCase(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user