MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_legacy_tuple_old_select

Method test_legacy_tuple_old_select

test/orm/test_query.py:356–368  ·  test/orm/test_query.py::RowTupleTest.test_legacy_tuple_old_select
(self, test_case)

Source from the content-addressed store, hash-verified

354 (lambda s, users: select(users.c.id, users.c.name),),
355 )
356 def test_legacy_tuple_old_select(self, test_case):
357 User, users = self.classes.User, self.tables.users
358
359 self.mapper_registry.map_imperatively(User, users)
360
361 s = fixture_session()
362
363 q = testing.resolve_lambda(test_case, **locals())
364
365 row = s.execute(q.order_by(User.id)).first()
366
367 class="cm"># s.execute() is now new style row
368 assert class="st">"jack" in row
369
370 def test_entity_mapping_access(self):
371 User, users = self.classes.User, self.tables.users

Callers

nothing calls this directly

Calls 6

fixture_sessionFunction · 0.90
localsFunction · 0.85
map_imperativelyMethod · 0.80
firstMethod · 0.45
executeMethod · 0.45
order_byMethod · 0.45

Tested by

no test coverage detected