MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_select_alias_column

Method test_select_alias_column

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

Source from the content-addressed store, hash-verified

669 assert t.c.x in mapping
670
671 def test_select_alias_column(self):
672 t = self._xy_table_fixture()
673 x, y = t.c.x, t.c.y
674 s = text("select x, y FROM t").columns(x, y).alias()
675 mapping = self._mapping(s)
676 assert t.c.x in mapping
677
678 def test_select_table_alias_column(self):
679 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