(self)
| 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")) |
nothing calls this directly
no test coverage detected