diff options
author | Tim Graham <timograham@gmail.com> | 2018-11-26 14:05:02 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-11-27 08:58:44 -0500 |
commit | 193c109327c5216cab1d4eed6bfdff24629b09a3 (patch) | |
tree | 3428f61d610f51349df5ab6eb26a4876b54878c5 /tests/custom_lookups | |
parent | f091ea35150d95fc6732bbf0c27b971dd445509a (diff) | |
download | django-193c109327c5216cab1d4eed6bfdff24629b09a3.tar.gz |
Switched TestCase to SimpleTestCase where possible in Django's tests.
Diffstat (limited to 'tests/custom_lookups')
-rw-r--r-- | tests/custom_lookups/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/custom_lookups/tests.py b/tests/custom_lookups/tests.py index 8c82b710c6..981a45b74a 100644 --- a/tests/custom_lookups/tests.py +++ b/tests/custom_lookups/tests.py @@ -4,7 +4,7 @@ from datetime import date, datetime from django.core.exceptions import FieldError from django.db import connection, models -from django.test import TestCase, override_settings +from django.test import SimpleTestCase, TestCase, override_settings from django.test.utils import register_lookup from django.utils import timezone @@ -513,7 +513,7 @@ class TrackCallsYearTransform(YearTransform): return super().get_transform(lookup_name) -class LookupTransformCallOrderTests(TestCase): +class LookupTransformCallOrderTests(SimpleTestCase): def test_call_order(self): with register_lookup(models.DateField, TrackCallsYearTransform): # junk lookup - tries lookup, then transform, then fails @@ -540,7 +540,7 @@ class LookupTransformCallOrderTests(TestCase): ['lookup']) -class CustomisedMethodsTests(TestCase): +class CustomisedMethodsTests(SimpleTestCase): def test_overridden_get_lookup(self): q = CustomModel.objects.filter(field__lookupfunc_monkeys=3) |