MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_13091

Function test_13091

test/typing/plain_files/orm/session.py:203–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201
202
203def test_13091() -> None:
204 session = Session()
205 stmt = select(user_table.c.id)
206 assert_type(stmt, Select[Unpack[Tuple[Any, ...]]])
207 result = session.execute(stmt)
208
209 assert_type(result, Result[Unpack[Tuple[Any, ...]]])
210 data1 = result.scalar()
211 assert_type(data1, Any | None)
212
213 data2 = session.scalar(stmt)
214 assert_type(data2, Any | None)
215
216
217async def async_test_13091() -> None:

Callers

nothing calls this directly

Calls 5

executeMethod · 0.95
scalarMethod · 0.95
SessionClass · 0.90
selectFunction · 0.90
scalarMethod · 0.45

Tested by

no test coverage detected