MCPcopy
hub / github.com/django/django / test_order_by_expression_ref

Method test_order_by_expression_ref

tests/ordering/tests.py:661–667  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

659 )
660
661 def test_order_by_expression_ref(self):
662 self.assertQuerySetEqual(
663 Author.objects.annotate(upper_name=Upper("name")).order_by(
664 Length("upper_name")
665 ),
666 Author.objects.order_by(Length(Upper("name"))),
667 )
668
669 def test_ordering_select_related_collision(self):
670 self.assertEqual(

Callers

nothing calls this directly

Calls 5

UpperClass · 0.90
LengthClass · 0.90
assertQuerySetEqualMethod · 0.80
order_byMethod · 0.80
annotateMethod · 0.80

Tested by

no test coverage detected