MCPcopy
hub / github.com/django/django / test_boolean_expression

Method test_boolean_expression

tests/queries/test_q.py:378–381  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

376 q.check({"name": "test"})
377
378 def test_boolean_expression(self):
379 q = Q(ExpressionWrapper(Q(price__gt=20), output_field=BooleanField()))
380 self.assertIs(q.check({"price": 25}), True)
381 self.assertIs(q.check({"price": Value(10)}), False)
382
383 def test_rawsql(self):
384 """

Callers

nothing calls this directly

Calls 5

checkMethod · 0.95
QClass · 0.90
ExpressionWrapperClass · 0.90
BooleanFieldClass · 0.90
ValueClass · 0.90

Tested by

no test coverage detected