MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_simple_compile

Method test_simple_compile

test/dialect/mssql/test_compiler.py:1871–1880  ·  view source on GitHub ↗
(self, fn, string, params)

Source from the content-addressed store, hash-verified

1869 (lambda t: func.power(t.c.a, t.c.b), "power(t.a, t.b)", {}),
1870 )
1871 def test_simple_compile(self, fn, string, params):
1872 t = table(
1873 "t",
1874 column("a", Integer),
1875 column("b", Integer),
1876 column("c", String),
1877 column("d", String),
1878 )
1879 expr = resolve_lambda(fn, t=t)
1880 self.assert_compile(expr, string, params)
1881
1882 def test_create_view_or_replace(self):
1883 t = Table("t", MetaData(), Column("a", Integer), Column("b", String))

Callers

nothing calls this directly

Calls 4

tableFunction · 0.90
columnFunction · 0.90
resolve_lambdaFunction · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected