MCPcopy
hub / github.com/django/django / test_defer_extra

Method test_defer_extra

tests/defer/tests.py:98–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 _ = p.pk
97
98 def test_defer_extra(self):
99 qs = Primary.objects.all()
100 self.assert_delayed(qs.defer("name").extra(select={"a": 1})[0], 1)
101 self.assert_delayed(qs.extra(select={"a": 1}).defer("name")[0], 1)
102
103 def test_defer_values_does_not_defer(self):
104 # User values() won't defer anything (you get the full list of

Callers

nothing calls this directly

Calls 4

assert_delayedMethod · 0.80
deferMethod · 0.80
allMethod · 0.45
extraMethod · 0.45

Tested by

no test coverage detected