MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_cursor_iterable

Method test_cursor_iterable

test/engine/test_pool.py:109–115  ·  test/engine/test_pool.py::PoolTest.test_cursor_iterable
(self)

Source from the content-addressed store, hash-verified

107 )
108 @testing.fails_on(class="st">"+pg8000", class="st">"returns [1], not (1,)")
109 def test_cursor_iterable(self):
110 conn = testing.db.raw_connection()
111 cursor = conn.cursor()
112 cursor.execute(str(select(1).compile(testing.db)))
113 expected = [(1,)]
114 for row in cursor:
115 eq_(row, expected.pop(0))
116
117 def test_no_connect_on_recreate(self):
118 def creator():

Callers

nothing calls this directly

Calls 7

selectFunction · 0.90
eq_Function · 0.90
raw_connectionMethod · 0.45
cursorMethod · 0.45
executeMethod · 0.45
compileMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected