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

Method test_results_can_close

test/sql/test_resultset.py:2213–2227  ·  view source on GitHub ↗

test #8710

(self, autoclose_row_fixture, result_fixture)

Source from the content-addressed store, hash-verified

2211 return result
2212
2213 def test_results_can_close(self, autoclose_row_fixture, result_fixture):
2214 """test #8710"""
2215
2216 r1 = result_fixture
2217
2218 is_false(r1.closed)
2219 is_false(r1._soft_closed)
2220
2221 r1._soft_close()
2222 is_false(r1.closed)
2223 is_true(r1._soft_closed)
2224
2225 r1.close()
2226 is_true(r1.closed)
2227 is_true(r1._soft_closed)
2228
2229 def test_autoclose_rows_exhausted_plain(
2230 self, connection, autoclose_row_fixture, result_fixture

Callers

nothing calls this directly

Calls 4

is_falseFunction · 0.90
is_trueFunction · 0.90
_soft_closeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected