MCPcopy
hub / github.com/django/django / test_ticket2496

Method test_ticket2496

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

Source from the content-addressed store, hash-verified

616 )
617
618 def test_ticket2496(self):
619 self.assertSequenceEqual(
620 Item.objects.extra(tables=["queries_author"])
621 .select_related("creator")
622 .order_by("name")[:1],
623 [self.i4],
624 )
625
626 def test_error_raised_on_filter_with_dictionary(self):
627 with self.assertRaisesMessage(FieldError, "Cannot parse keyword query as dict"):

Callers

nothing calls this directly

Calls 3

order_byMethod · 0.80
select_relatedMethod · 0.80
extraMethod · 0.45

Tested by

no test coverage detected