MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_select_tuple

Method test_select_tuple

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

Source from the content-addressed store, hash-verified

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

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