1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

Updated and added tests for QuerySet.datetimes.

This commit is contained in:
Aymeric Augustin
2013-02-10 21:40:09 +01:00
parent a8451a5004
commit 50fb7a5246
9 changed files with 241 additions and 50 deletions

View File

@@ -146,9 +146,9 @@ class DateQuotingTest(TestCase):
years = models.SchoolClass.objects.dates('last_updated', 'year')
self.assertEqual(list(years), [datetime.datetime(2010, 1, 1, 0, 0)])
def test_django_extract(self):
def test_django_date_extract(self):
"""
Test the custom ``django_extract method``, in particular against fields
Test the custom ``django_date_extract method``, in particular against fields
which clash with strings passed to it (e.g. 'day') - see #12818__.
__: http://code.djangoproject.com/ticket/12818