MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_results_can_close

Method test_results_can_close

test/sql/test_resultset.py:2300–2314  ·  view source on GitHub ↗

test #8710

(self, autoclose_row_fixture, result_fixture)

Source from the content-addressed store, hash-verified

2298 return result
2299
2300 def test_results_can_close(self, autoclose_row_fixture, result_fixture):
2301 """test #8710"""
2302
2303 r1 = result_fixture
2304
2305 is_false(r1.closed)
2306 is_false(r1._soft_closed)
2307
2308 r1._soft_close()
2309 is_false(r1.closed)
2310 is_true(r1._soft_closed)
2311
2312 r1.close()
2313 is_true(r1.closed)
2314 is_true(r1._soft_closed)
2315
2316 def test_autoclose_rows_exhausted_plain(
2317 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