summaryrefslogtreecommitdiff
path: root/tests/queries/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/queries/tests.py')
-rw-r--r--tests/queries/tests.py36
1 files changed, 19 insertions, 17 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py
index 8340369a6d..0f86a0f066 100644
--- a/tests/queries/tests.py
+++ b/tests/queries/tests.py
@@ -1,35 +1,37 @@
from __future__ import unicode_literals
-from collections import OrderedDict
import datetime
-from operator import attrgetter
import pickle
import unittest
+from collections import OrderedDict
+from operator import attrgetter
from django.core.exceptions import FieldError
-from django.db import connection, DEFAULT_DB_ALIAS
-from django.db.models import Count, F, Q
-from django.db.models.sql.where import WhereNode, NothingNode
+from django.db import DEFAULT_DB_ALIAS, connection
+from django.db.models import F, Q, Count
from django.db.models.sql.constants import LOUTER
from django.db.models.sql.datastructures import EmptyResultSet
+from django.db.models.sql.where import NothingNode, WhereNode
from django.test import TestCase, skipUnlessDBFeature
from django.test.utils import CaptureQueriesContext
from django.utils import six
from django.utils.six.moves import range
from .models import (
- Annotation, Article, Author, Celebrity, Child, Cover, Detail, DumbCategory,
- ExtraInfo, Fan, Item, LeafA, Join, LeafB, LoopX, LoopZ, ManagedModel,
- Member, NamedCategory, Note, Number, Plaything, PointerA, Ranking, Related,
- Report, ReservedName, Tag, TvChef, Valid, X, Food, Eaten, Node, ObjectA,
- ProxyObjectA, ChildObjectA, ObjectB, ProxyObjectB, ObjectC, CategoryItem,
- SimpleCategory, SpecialCategory, OneToOneCategory, NullableName, ProxyCategory,
- SingleObject, RelatedObject, ModelA, ModelB, ModelC, ModelD, Responsibility, Job,
- JobResponsibilities, BaseA, FK1, Identifier, Program, Channel, Page, Paragraph,
- Chapter, Book, MyObject, Order, OrderItem, SharedConnection, Task, Staff,
- StaffUser, CategoryRelationship, Ticket21203Parent, Ticket21203Child, Person,
- Company, Employment, CustomPk, CustomPkTag, Classroom, School, Student,
- Ticket23605A, Ticket23605B, Ticket23605C)
+ FK1, X, Annotation, Article, Author, BaseA, Book, CategoryItem,
+ CategoryRelationship, Celebrity, Channel, Chapter, Child, ChildObjectA,
+ Classroom, Company, Cover, CustomPk, CustomPkTag, Detail, DumbCategory,
+ Eaten, Employment, ExtraInfo, Fan, Food, Identifier, Item, Job,
+ JobResponsibilities, Join, LeafA, LeafB, LoopX, LoopZ, ManagedModel,
+ Member, ModelA, ModelB, ModelC, ModelD, MyObject, NamedCategory, Node,
+ Note, NullableName, Number, ObjectA, ObjectB, ObjectC, OneToOneCategory,
+ Order, OrderItem, Page, Paragraph, Person, Plaything, PointerA, Program,
+ ProxyCategory, ProxyObjectA, ProxyObjectB, Ranking, Related, RelatedObject,
+ Report, ReservedName, Responsibility, School, SharedConnection,
+ SimpleCategory, SingleObject, SpecialCategory, Staff, StaffUser, Student,
+ Tag, Task, Ticket21203Child, Ticket21203Parent, Ticket23605A, Ticket23605B,
+ Ticket23605C, TvChef, Valid,
+)
class BaseQuerysetTest(TestCase):