summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRenato Oliveira <renato@labcodes.com.br>2015-09-11 10:14:35 -0500
committerTim Graham <timograham@gmail.com>2015-09-11 12:16:06 -0400
commite3720b990a33ae259da4b1f1f6069aa6bbc8c03d (patch)
tree3edd893660805b93724f854fa986352e9fe7b50a /tests
parentfba8655e88e9ed576630d7f505389119ab36ef28 (diff)
Fixed #25382 -- Removed obsolete references to DateQuerySet.
Diffstat (limited to 'tests')
-rw-r--r--tests/aggregation_regress/tests.py2
-rw-r--r--tests/queries/tests.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/aggregation_regress/tests.py b/tests/aggregation_regress/tests.py
index 44c0f0c07f..beb87bdb3a 100644
--- a/tests/aggregation_regress/tests.py
+++ b/tests/aggregation_regress/tests.py
@@ -670,7 +670,7 @@ class AggregationTests(TestCase):
lambda b: b.name
)
- # Regression for #10248 - Annotations work with DateQuerySets
+ # Regression for #10248 - Annotations work with dates()
qs = Book.objects.annotate(num_authors=Count('authors')).filter(num_authors=2).dates('pubdate', 'day')
self.assertQuerysetEqual(
qs, [
diff --git a/tests/queries/tests.py b/tests/queries/tests.py
index d97f909ad2..23c9891079 100644
--- a/tests/queries/tests.py
+++ b/tests/queries/tests.py
@@ -751,7 +751,7 @@ class Queries1Tests(BaseQuerysetTest):
3
)
- # Pickling of DateQuerySets used to fail
+ # Pickling of QuerySets using datetimes() should work.
qs = Item.objects.datetimes('created', 'month')
pickle.loads(pickle.dumps(qs))
@@ -1302,8 +1302,8 @@ class Queries3Tests(BaseQuerysetTest):
self.assertQuerysetEqual(Valid.objects.all(), [])
def test_ticket8683(self):
- # Raise proper error when a DateQuerySet gets passed a wrong type of
- # field
+ # An error should be raised when QuerySet.datetimes() is passed the
+ # wrong type of field.
self.assertRaisesMessage(
AssertionError,
"'name' isn't a DateTimeField.",