MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_execute

Method test_execute

test/ext/asyncio/test_session.py:274–284  ·  view source on GitHub ↗
(self, async_session, kw)

Source from the content-addressed store, hash-verified

272 {}, dict(execution_options={"logging_token": "test"}), argnames="kw"
273 )
274 async def test_execute(self, async_session, kw):
275 User = self.classes.User
276
277 stmt = (
278 select(User)
279 .options(selectinload(User.addresses))
280 .order_by(User.id)
281 )
282
283 result = await async_session.execute(stmt, **kw)
284 eq_(result.scalars().all(), self.static.user_address_result)
285
286 @async_test
287 async def test_scalar(self, async_session):

Callers

nothing calls this directly

Calls 8

selectFunction · 0.90
selectinloadFunction · 0.90
eq_Function · 0.90
order_byMethod · 0.45
optionsMethod · 0.45
executeMethod · 0.45
allMethod · 0.45
scalarsMethod · 0.45

Tested by

no test coverage detected