MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / render_postcompile_fixture

Method render_postcompile_fixture

test/sql/test_compiler.py:5741–5754  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5739
5740 @testing.fixture
5741 def render_postcompile_fixture(self):
5742 return (
5743 select(func.count(1))
5744 .where(column("q") == "x")
5745 .where(column("z").in_([1, 2, 3]))
5746 .where(column("z_tuple").in_([(1, "a"), (2, "b"), (3, "c")]))
5747 .where(
5748 column("y").op("foobar")(
5749 bindparam(
5750 "key", value=[("1", "2"), ("3", "4")], expanding=True
5751 )
5752 )
5753 )
5754 )
5755
5756 def test_render_postcompile_default_stmt(self, render_postcompile_fixture):
5757 stmt = render_postcompile_fixture

Callers

nothing calls this directly

Calls 7

selectFunction · 0.90
columnFunction · 0.90
bindparamFunction · 0.90
whereMethod · 0.45
countMethod · 0.45
in_Method · 0.45
opMethod · 0.45

Tested by

no test coverage detected