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

Method test_select_label_alt_name

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

Source from the content-addressed store, hash-verified

3885 }
3886
3887 def test_select_label_alt_name(self):
3888 t = self._fixture()
3889 l1, l2 = t.c.x.label("a"), t.c.y.label("b")
3890 s = select(l1, l2)
3891 mapping = self._mapping(s)
3892 assert l1 in mapping
3893
3894 assert t.c.x not in mapping
3895
3896 def test_select_alias_label_alt_name(self):
3897 t = self._fixture()

Callers

nothing calls this directly

Calls 4

_fixtureMethod · 0.95
_mappingMethod · 0.95
selectFunction · 0.90
labelMethod · 0.45

Tested by

no test coverage detected