MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_named_entity

Method test_named_entity

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

Source from the content-addressed store, hash-verified

186 assert alias.id.__clause_element__().table is not table
187
188 def test_named_entity(self):
189 class Point:
190 pass
191
192 self._fixture(Point)
193
194 alias = aliased(Point, name="pp")
195
196 self.assert_compile(
197 select(alias), "SELECT pp.id, pp.x, pp.y FROM point AS pp"
198 )
199
200 def test_named_selectable(self):
201 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