MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_kw

Method test_kw

test/sql/test_text.py:340–348  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

338 )
339
340 def test_kw(self):
341 t = text("select * from foo where lala=:bar and hoho=:whee")
342 t = t.bindparams(bar=4, whee=7)
343
344 self.assert_compile(
345 t,
346 "select * from foo where lala=:bar and hoho=:whee",
347 checkparams={"bar": 4, "whee": 7},
348 )
349
350 def test_positional_plus_kw(self):
351 t = text("select * from foo where lala=:bar and hoho=:whee")

Callers

nothing calls this directly

Calls 3

textFunction · 0.90
assert_compileMethod · 0.80
bindparamsMethod · 0.45

Tested by

no test coverage detected