MCPcopy
hub / github.com/django/django / test_max_pk

Method test_max_pk

tests/composite_pk/test_aggregate.py:140–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 )
139
140 def test_max_pk(self):
141 msg = "Max expression does not support composite primary keys."
142 with self.assertRaisesMessage(ValueError, msg):
143 Comment.objects.aggregate(Max("pk"))
144
145 def test_first_from_unordered_queryset_aggregation_pk_selected(self):
146 self.assertEqual(

Callers

nothing calls this directly

Calls 3

MaxClass · 0.90
assertRaisesMessageMethod · 0.80
aggregateMethod · 0.80

Tested by

no test coverage detected