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

Method test_fetchall

test/sql/test_resultset.py:3687–3703  ·  view source on GitHub ↗
(self, connection, merge_fixture)

Source from the content-addressed store, hash-verified

3685 assert r.closed
3686
3687 def test_fetchall(self, connection, merge_fixture):
3688 r1, r2, r3, r4 = merge_fixture(connection)
3689
3690 result = r1.merge(r2, r3, r4)
3691 eq_(
3692 result.fetchall(),
3693 [
3694 (7, "u1"),
3695 (8, "u2"),
3696 (9, "u3"),
3697 (10, "u4"),
3698 (11, "u5"),
3699 (12, "u6"),
3700 ],
3701 )
3702 for r in [r1, r2, r3, r4]:
3703 assert r._soft_closed
3704
3705 def test_first(self, connection, merge_fixture):
3706 r1, r2, r3, r4 = merge_fixture(connection)

Callers

nothing calls this directly

Calls 3

eq_Function · 0.90
mergeMethod · 0.45
fetchallMethod · 0.45

Tested by

no test coverage detected