MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_positional_plus_kw

Method test_positional_plus_kw

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

Source from the content-addressed store, hash-verified

348 )
349
350 def test_positional_plus_kw(self):
351 t = text("select * from foo where lala=:bar and hoho=:whee")
352 t = t.bindparams(bindparam("bar", 4), whee=7)
353
354 self.assert_compile(
355 t,
356 "select * from foo where lala=:bar and hoho=:whee",
357 checkparams={"bar": 4, "whee": 7},
358 )
359
360 def test_literal_binds(self):
361 t = text("select * from foo where lala=:bar and hoho=:whee")

Callers

nothing calls this directly

Calls 4

textFunction · 0.90
bindparamFunction · 0.90
assert_compileMethod · 0.80
bindparamsMethod · 0.45

Tested by

no test coverage detected