MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_fetchall

Method test_fetchall

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

Source from the content-addressed store, hash-verified

3773 assert r.closed
3774
3775 def test_fetchall(self, connection, merge_fixture):
3776 r1, r2, r3, r4 = merge_fixture(connection)
3777
3778 result = r1.merge(r2, r3, r4)
3779 eq_(
3780 result.fetchall(),
3781 [
3782 (7, "u1"),
3783 (8, "u2"),
3784 (9, "u3"),
3785 (10, "u4"),
3786 (11, "u5"),
3787 (12, "u6"),
3788 ],
3789 )
3790 for r in [r1, r2, r3, r4]:
3791 assert r._soft_closed
3792
3793 def test_first(self, connection, merge_fixture):
3794 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