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

Method test_row_iteration

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

Source from the content-addressed store, hash-verified

238 not_in("foobar", r._mapping)
239
240 def test_row_iteration(self, connection):
241 users = self.tables.users
242
243 connection.execute(
244 users.insert(),
245 [
246 {"user_id": 7, "user_name": "jack"},
247 {"user_id": 8, "user_name": "ed"},
248 {"user_id": 9, "user_name": "fred"},
249 ],
250 )
251 r = connection.execute(users.select())
252 rows = []
253 for row in r:
254 rows.append(row)
255 eq_(len(rows), 3)
256
257 def test_scalars(self, connection):
258 users = self.tables.users

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
executeMethod · 0.45
insertMethod · 0.45
selectMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected