MCPcopy
hub / github.com/django/django / test_dates

Method test_dates

tests/reserved_names/tests.py:69–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 self.assertEqual(v.where, datetime.date(year=2005, month=1, day=1))
68
69 def test_dates(self):
70 self.generate()
71 resp = Thing.objects.dates("where", "year")
72 self.assertEqual(
73 list(resp),
74 [
75 datetime.date(2005, 1, 1),
76 datetime.date(2006, 1, 1),
77 ],
78 )
79
80 def test_month_filter(self):
81 self.generate()

Callers

nothing calls this directly

Calls 2

generateMethod · 0.95
datesMethod · 0.80

Tested by

no test coverage detected