MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_fetchone_til_end

Method test_fetchone_til_end

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

Source from the content-addressed store, hash-verified

1112 trans.rollback()
1113
1114 def test_fetchone_til_end(self, connection):
1115 result = connection.exec_driver_sql("select * from users")
1116 eq_(result.fetchone(), None)
1117 eq_(result.fetchone(), None)
1118 eq_(result.fetchone(), None)
1119 result.close()
1120 assert_raises_message(
1121 exc.ResourceClosedError,
1122 "This result object is closed.",
1123 result.fetchone,
1124 )
1125
1126 def test_row_case_sensitive(self, connection):
1127 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