diff options
Diffstat (limited to 'tests/expressions/tests.py')
-rw-r--r-- | tests/expressions/tests.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py index cce1253e3f..7233fa0d08 100644 --- a/tests/expressions/tests.py +++ b/tests/expressions/tests.py @@ -1,24 +1,28 @@ from __future__ import unicode_literals -from copy import deepcopy import datetime import uuid +from copy import deepcopy from django.core.exceptions import FieldError -from django.db import connection, transaction, DatabaseError +from django.db import DatabaseError, connection, transaction from django.db.models import TimeField, UUIDField -from django.db.models.aggregates import Avg, Count, Max, Min, StdDev, Sum, Variance +from django.db.models.aggregates import ( + Avg, Count, Max, Min, StdDev, Sum, Variance, +) from django.db.models.expressions import ( - Case, Col, Date, DateTime, F, Func, OrderBy, - Random, RawSQL, Ref, Value, When + F, Case, Col, Date, DateTime, Func, OrderBy, Random, RawSQL, Ref, Value, + When, +) +from django.db.models.functions import ( + Coalesce, Concat, Length, Lower, Substr, Upper, ) -from django.db.models.functions import Coalesce, Concat, Length, Lower, Substr, Upper from django.test import TestCase, skipIfDBFeature, skipUnlessDBFeature from django.test.utils import Approximate from django.utils import six from django.utils.timezone import utc -from .models import Company, Employee, Number, Experiment, Time, UUID +from .models import UUID, Company, Employee, Experiment, Number, Time class BasicExpressionsTests(TestCase): |