MCPcopy
hub / github.com/django/django / test_tickets_6180_6203

Method test_tickets_6180_6203

tests/queries/tests.py:749–758  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

747 )
748
749 def test_tickets_6180_6203(self):
750 # Dates with limits and/or counts
751 self.assertEqual(Item.objects.count(), 4)
752 self.assertEqual(Item.objects.datetimes("created", "month").count(), 1)
753 self.assertEqual(Item.objects.datetimes("created", "day").count(), 2)
754 self.assertEqual(len(Item.objects.datetimes("created", "day")), 2)
755 self.assertEqual(
756 Item.objects.datetimes("created", "day")[0],
757 datetime.datetime(2007, 12, 19, 0, 0),
758 )
759
760 def test_tickets_7087_12242(self):
761 # Dates with extra select columns

Callers

nothing calls this directly

Calls 2

datetimesMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected