mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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
|
@ -11,7 +11,8 @@ from xml.dom import minidom
|
|||
from django.core import management, serializers
|
||||
from django.db import connection, transaction
|
||||
from django.test import (
|
||||
TestCase, TransactionTestCase, override_settings, skipUnlessDBFeature,
|
||||
SimpleTestCase, TestCase, TransactionTestCase, override_settings,
|
||||
skipUnlessDBFeature,
|
||||
)
|
||||
from django.test.utils import Approximate
|
||||
from django.utils import six
|
||||
|
@ -34,7 +35,7 @@ except ImportError:
|
|||
"json2": "django.core.serializers.json",
|
||||
}
|
||||
)
|
||||
class SerializerRegistrationTests(TestCase):
|
||||
class SerializerRegistrationTests(SimpleTestCase):
|
||||
def setUp(self):
|
||||
self.old_serializers = serializers._serializers
|
||||
serializers._serializers = {}
|
||||
|
@ -664,7 +665,7 @@ class YamlImportModuleMock(object):
|
|||
return self._import_module(module_path)
|
||||
|
||||
|
||||
class NoYamlSerializerTestCase(TestCase):
|
||||
class NoYamlSerializerTestCase(SimpleTestCase):
|
||||
"""Not having pyyaml installed provides a misleading error
|
||||
|
||||
Refs: #12756
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue