MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_result_tuples

Method test_result_tuples

test/sql/test_resultset.py:324–338  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

322
323 @expect_deprecated(".*is deprecated, Row now behaves like a tuple.*")
324 def test_result_tuples(self, connection):
325 users = self.tables.users
326
327 connection.execute(
328 users.insert(),
329 [
330 {"user_id": 7, "user_name": "jack"},
331 {"user_id": 8, "user_name": "ed"},
332 {"user_id": 9, "user_name": "fred"},
333 ],
334 )
335 r = connection.execute(
336 users.select().order_by(users.c.user_id)
337 ).tuples()
338 eq_(r.all(), [(7, "jack"), (8, "ed"), (9, "fred")])
339
340 @expect_deprecated(".*is deprecated, Row now behaves like a tuple.*")
341 def test_row_tuple(self, connection):

Callers

nothing calls this directly

Calls 7

eq_Function · 0.90
executeMethod · 0.45
insertMethod · 0.45
tuplesMethod · 0.45
order_byMethod · 0.45
selectMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected