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

Method test_keys_no_rows

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

Source from the content-addressed store, hash-verified

198 rows[0].user_id
199
200 def test_keys_no_rows(self, connection):
201 for i in range(2):
202 r = connection.execute(
203 text("update users set user_name='new' where user_id=10")
204 )
205
206 with expect_raises_message(
207 exc.ResourceClosedError,
208 "This result object does not return rows",
209 ):
210 r.keys()
211
212 def test_row_keys_removed(self, connection):
213 r = connection.execute(

Callers

nothing calls this directly

Calls 4

textFunction · 0.90
expect_raises_messageFunction · 0.90
executeMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected