mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #24652 -- Used SimpleTestCase where appropriate.
This commit is contained in:
@@ -5,6 +5,7 @@ import unittest
|
||||
|
||||
from django.core.checks import Error, Warning as DjangoWarning
|
||||
from django.db import connection, models
|
||||
from django.test import TestCase
|
||||
from django.test.utils import override_settings
|
||||
from django.utils.timezone import now
|
||||
|
||||
@@ -64,7 +65,7 @@ class BooleanFieldTests(IsolatedModelsTestCase):
|
||||
self.assertEqual(errors, expected)
|
||||
|
||||
|
||||
class CharFieldTests(IsolatedModelsTestCase):
|
||||
class CharFieldTests(IsolatedModelsTestCase, TestCase):
|
||||
|
||||
def test_valid_field(self):
|
||||
class Model(models.Model):
|
||||
@@ -215,7 +216,7 @@ class CharFieldTests(IsolatedModelsTestCase):
|
||||
self.assertEqual(errors, expected)
|
||||
|
||||
|
||||
class DateFieldTests(IsolatedModelsTestCase):
|
||||
class DateFieldTests(IsolatedModelsTestCase, TestCase):
|
||||
|
||||
def test_auto_now_and_auto_now_add_raise_error(self):
|
||||
class Model(models.Model):
|
||||
@@ -281,7 +282,7 @@ class DateFieldTests(IsolatedModelsTestCase):
|
||||
self.test_fix_default_value()
|
||||
|
||||
|
||||
class DateTimeFieldTests(IsolatedModelsTestCase):
|
||||
class DateTimeFieldTests(IsolatedModelsTestCase, TestCase):
|
||||
|
||||
def test_fix_default_value(self):
|
||||
class Model(models.Model):
|
||||
@@ -548,7 +549,7 @@ class IntegerFieldTests(IsolatedModelsTestCase):
|
||||
self.assertEqual(errors, expected)
|
||||
|
||||
|
||||
class TimeFieldTests(IsolatedModelsTestCase):
|
||||
class TimeFieldTests(IsolatedModelsTestCase, TestCase):
|
||||
|
||||
def test_fix_default_value(self):
|
||||
class Model(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user