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

Method test_select_tuple

test/sql/test_query.py:160–172  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

158 assert row.y == False # noqa
159
160 def test_select_tuple(self, connection):
161 users = self.tables.users
162 connection.execute(
163 users.insert(),
164 {"user_id": 1, "user_name": "apples"},
165 )
166
167 assert_raises_message(
168 exc.CompileError,
169 r"Most backends don't support SELECTing from a tuple\(\) object.",
170 connection.execute,
171 select(tuple_(users.c.user_id, users.c.user_name)),
172 )
173
174 @testing.combinations(
175 (

Callers

nothing calls this directly

Calls 5

assert_raises_messageFunction · 0.90
selectFunction · 0.90
tuple_Function · 0.90
executeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected