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

Method test_fetchone_til_end

test/sql/test_resultset.py:1046–1056  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

1044 trans.rollback()
1045
1046 def test_fetchone_til_end(self, connection):
1047 result = connection.exec_driver_sql("select * from users")
1048 eq_(result.fetchone(), None)
1049 eq_(result.fetchone(), None)
1050 eq_(result.fetchone(), None)
1051 result.close()
1052 assert_raises_message(
1053 exc.ResourceClosedError,
1054 "This result object is closed.",
1055 result.fetchone,
1056 )
1057
1058 def test_row_case_sensitive(self, connection):
1059 row = connection.execute(

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
assert_raises_messageFunction · 0.90
exec_driver_sqlMethod · 0.45
fetchoneMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected