MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_positional

Method test_positional

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

Source from the content-addressed store, hash-verified

328 __dialect__ = "default"
329
330 def test_positional(self):
331 t = text("select * from foo where lala=:bar and hoho=:whee")
332 t = t.bindparams(bindparam("bar", 4), bindparam("whee", 7))
333
334 self.assert_compile(
335 t,
336 "select * from foo where lala=:bar and hoho=:whee",
337 checkparams={"bar": 4, "whee": 7},
338 )
339
340 def test_kw(self):
341 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