MCPcopy
hub / github.com/psycopg/psycopg / test_non_scrollable

Function test_non_scrollable

tests/test_cursor_server_async.py:518–525  ·  view source on GitHub ↗
(aconn)

Source from the content-addressed store, hash-verified

516
517
518async def test_non_scrollable(aconn):
519 curs = aconn.cursor("foo", scrollable=False)
520 assert curs.scrollable is False
521 await curs.execute("select generate_series(0, 5)")
522 await curs.scroll(5)
523 with pytest.raises(e.OperationalError):
524 await curs.scroll(-1)
525 await curs.close()
526
527
528@pytest.mark.parametrize("kwargs", [{}, {"withhold": False}])

Callers

nothing calls this directly

Calls 4

cursorMethod · 0.45
executeMethod · 0.45
scrollMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…