mirror of
https://github.com/django/django.git
synced 2025-11-25 13:13:28 +00:00
Switched TestCase to SimpleTestCase where possible in Django's tests.
This commit is contained in:
parent
f091ea3515
commit
193c109327
37 changed files with 130 additions and 134 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue