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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user