MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_with_only_generative

Method test_with_only_generative

test/sql/test_selectable.py:791–797  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

789 assert sel3.corresponding_column(col) is sel3.c.foo
790
791 def test_with_only_generative(self):
792 s1 = table1.select().scalar_subquery()
793 self.assert_compile(
794 s1.with_only_columns(s1),
795 "SELECT (SELECT table1.col1, table1.col2, "
796 "table1.col3, table1.colx FROM table1) AS anon_1",
797 )
798
799 def test_reduce_cols_odd_expressions(self):
800 """test util.reduce_columns() works with text, non-col expressions

Callers

nothing calls this directly

Calls 4

assert_compileMethod · 0.80
with_only_columnsMethod · 0.80
scalar_subqueryMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected