MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_boolean_constants

Method test_boolean_constants

test/sql/test_lambdas.py:116–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114 )
115
116 def test_boolean_constants(self):
117 t1 = table("t1", column("q"), column("p"))
118
119 def go():
120 xy = True
121 stmt = select(t1).where(lambda: t1.c.q == xy)
122 return stmt
123
124 self.assert_compile(
125 go(), "SELECT t1.q, t1.p FROM t1 WHERE t1.q = :xy_1"
126 )
127
128 def test_execute_boolean(self, boolean_table_fixture, connection):
129 boolean_data = boolean_table_fixture

Callers

nothing calls this directly

Calls 4

tableFunction · 0.90
columnFunction · 0.90
assert_compileMethod · 0.80
goFunction · 0.50

Tested by

no test coverage detected