MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_keys_no_rows

Method test_keys_no_rows

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

Source from the content-addressed store, hash-verified

250 filters.fail()
251
252 def test_keys_no_rows(self, connection):
253 for i in range(2):
254 r = connection.execute(
255 text("update users set user_name='new' where user_id=10")
256 )
257
258 with expect_raises_message(
259 exc.ResourceClosedError,
260 "This result object does not return rows",
261 ):
262 r.keys()
263
264 def test_row_keys_removed(self, connection):
265 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