MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_select_table_alias_column

Method test_select_table_alias_column

test/sql/test_text.py:678–685  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

676 assert t.c.x in mapping
677
678 def test_select_table_alias_column(self):
679 t = self._xy_table_fixture()
680 x = t.c.x
681
682 ta = t.alias()
683 s = text("select ta.x, ta.y FROM t AS ta").columns(ta.c.x, ta.c.y)
684 mapping = self._mapping(s)
685 assert x not in mapping
686
687 def test_subquery_accessors(self):
688 t = self._xy_table_fixture()

Callers

nothing calls this directly

Calls 5

_xy_table_fixtureMethod · 0.95
_mappingMethod · 0.95
textFunction · 0.90
aliasMethod · 0.45
columnsMethod · 0.45

Tested by

no test coverage detected