MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_select_label_alt_name

Method test_select_label_alt_name

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

Source from the content-addressed store, hash-verified

644 }
645
646 def test_select_label_alt_name(self):
647 t = self._xy_table_fixture()
648 l1, l2 = t.c.x.label("a"), t.c.y.label("b")
649 s = text("select x AS a, y AS b FROM t").columns(l1, l2)
650 mapping = self._mapping(s)
651 assert l1 in mapping
652
653 assert t.c.x not in mapping
654
655 def test_select_alias_label_alt_name(self):
656 t = self._xy_table_fixture()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected