mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Switched TestCase to SimpleTestCase where possible in Django's tests.
This commit is contained in:
@@ -8,13 +8,13 @@ from django.db.models.functions import Lower
|
||||
from django.db.models.lookups import Exact, GreaterThan, IsNull, LessThan
|
||||
from django.db.models.sql.query import Query
|
||||
from django.db.models.sql.where import OR
|
||||
from django.test import TestCase
|
||||
from django.test import SimpleTestCase
|
||||
from django.test.utils import register_lookup
|
||||
|
||||
from .models import Author, Item, ObjectC, Ranking
|
||||
|
||||
|
||||
class TestQuery(TestCase):
|
||||
class TestQuery(SimpleTestCase):
|
||||
def test_simple_query(self):
|
||||
query = Query(Author)
|
||||
where = query.build_where(Q(num__gt=2))
|
||||
|
||||
Reference in New Issue
Block a user