MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_execute

Method test_execute

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

Source from the content-addressed store, hash-verified

179 {}, dict(execution_options={"logging_token": "test"}), argnames="kw"
180 )
181 async def test_execute(self, async_session, kw):
182 User = self.classes.User
183
184 stmt = (
185 select(User)
186 .options(selectinload(User.addresses))
187 .order_by(User.id)
188 )
189
190 result = await async_session.execute(stmt, **kw)
191 eq_(result.scalars().all(), self.static.user_address_result)
192
193 @async_test
194 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