MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / render_postcompile_fixture

Method render_postcompile_fixture

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

Source from the content-addressed store, hash-verified

5534
5535 @testing.fixture
5536 def render_postcompile_fixture(self):
5537 return (
5538 select(func.count(1))
5539 .where(column("q") == "x")
5540 .where(column("z").in_([1, 2, 3]))
5541 .where(column("z_tuple").in_([(1, "a"), (2, "b"), (3, "c")]))
5542 .where(
5543 column("y").op("foobar")(
5544 bindparam(
5545 "key", value=[("1", "2"), ("3", "4")], expanding=True
5546 )
5547 )
5548 )
5549 )
5550
5551 def test_render_postcompile_default_stmt(self, render_postcompile_fixture):
5552 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