MCPcopy
hub / github.com/django/django / test_emptyqueryset_values

Method test_emptyqueryset_values

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

Source from the content-addressed store, hash-verified

2670
2671class EmptyQuerySetTests(SimpleTestCase):
2672 def test_emptyqueryset_values(self):
2673 # #14366 -- Calling .values() on an empty QuerySet and then cloning
2674 # that should not cause an error
2675 self.assertCountEqual(Number.objects.none().values("num").order_by("num"), [])
2676
2677 def test_values_subquery(self):
2678 self.assertCountEqual(

Callers

nothing calls this directly

Calls 3

order_byMethod · 0.80
noneMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected