MCPcopy
hub / github.com/django/django / test_lookup_direct_value_rhs_unwrapped

Method test_lookup_direct_value_rhs_unwrapped

tests/lookup/tests.py:1763–1767  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1761 )
1762
1763 def test_lookup_direct_value_rhs_unwrapped(self):
1764 with self.assertNumQueries(1) as ctx:
1765 self.assertIs(Author.objects.filter(GreaterThan(2, 1)).exists(), True)
1766 # Direct values on RHS are not wrapped.
1767 self.assertIn("2 > 1", ctx.captured_queries[0]["sql"])
1768
1769
1770class LookupQueryingTests(TestCase):

Callers

nothing calls this directly

Calls 4

GreaterThanClass · 0.90
assertNumQueriesMethod · 0.80
existsMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected