MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_select_column

Method test_select_column

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

Source from the content-addressed store, hash-verified

662 assert t.c.x not in mapping
663
664 def test_select_column(self):
665 t = self._xy_table_fixture()
666 x, y = t.c.x, t.c.y
667 s = text("select x, y FROM t").columns(x, y)
668 mapping = self._mapping(s)
669 assert t.c.x in mapping
670
671 def test_select_alias_column(self):
672 t = self._xy_table_fixture()

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected