MCPcopy
hub / github.com/django/django / test_datetimes_alias

Method test_datetimes_alias

tests/annotations/tests.py:1507–1517  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1505 )
1506
1507 def test_datetimes_alias(self):
1508 qs = Store.objects.alias(
1509 original_opening_alias=F("original_opening"),
1510 ).datetimes("original_opening_alias", "year")
1511 self.assertCountEqual(
1512 qs,
1513 [
1514 datetime.datetime(1994, 1, 1),
1515 datetime.datetime(2001, 1, 1),
1516 ],
1517 )
1518
1519 def test_aggregate_alias(self):
1520 msg = (

Callers

nothing calls this directly

Calls 3

FClass · 0.90
datetimesMethod · 0.80
aliasMethod · 0.80

Tested by

no test coverage detected