mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #24652 -- Used SimpleTestCase where appropriate.
This commit is contained in:
parent
e2b77acedd
commit
be67400b47
93 changed files with 362 additions and 340 deletions
|
@ -4,7 +4,7 @@ from django.contrib import admin
|
|||
from django.contrib.admin.decorators import register
|
||||
from django.contrib.admin.sites import site
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.test import TestCase
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
from .models import Location, Person, Place, Traveler
|
||||
|
||||
|
@ -18,7 +18,7 @@ class CustomSite(admin.AdminSite):
|
|||
pass
|
||||
|
||||
|
||||
class TestRegistration(TestCase):
|
||||
class TestRegistration(SimpleTestCase):
|
||||
def setUp(self):
|
||||
self.site = admin.AdminSite()
|
||||
|
||||
|
@ -80,7 +80,7 @@ class TestRegistration(TestCase):
|
|||
self.assertFalse(self.site.is_registered(Person))
|
||||
|
||||
|
||||
class TestRegistrationDecorator(TestCase):
|
||||
class TestRegistrationDecorator(SimpleTestCase):
|
||||
"""
|
||||
Tests the register decorator in admin.decorators
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue