MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_named_selectable

Method test_named_selectable

test/orm/test_utils.py:200–210  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198 )
199
200 def test_named_selectable(self):
201 class Point:
202 pass
203
204 table = self._fixture(Point)
205
206 alias = aliased(table, name="pp")
207
208 self.assert_compile(
209 select(alias), "SELECT pp.id, pp.x, pp.y FROM point AS pp"
210 )
211
212 def test_not_instantiatable(self):
213 class Point:

Callers

nothing calls this directly

Calls 4

_fixtureMethod · 0.95
aliasedFunction · 0.90
selectFunction · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected