MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_standalone_function

Method test_standalone_function

test/sql/test_cte.py:2046–2056  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2044 )
2045
2046 def test_standalone_function(self):
2047 a = table("a", column("x"))
2048 a_stmt = select(a)
2049
2050 stmt = select(cte(a_stmt))
2051
2052 self.assert_compile(
2053 stmt,
2054 "WITH anon_1 AS (SELECT a.x AS x FROM a) "
2055 "SELECT anon_1.x FROM anon_1",
2056 )
2057
2058 def test_no_alias_construct(self):
2059 a = table("a", column("x"))

Callers

nothing calls this directly

Calls 5

tableFunction · 0.90
columnFunction · 0.90
selectFunction · 0.90
cteFunction · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected