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

Function test_non_scrollable

tests/test_cursor_server.py:512–519  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

510
511
512def test_non_scrollable(conn):
513 curs = conn.cursor("foo", scrollable=False)
514 assert curs.scrollable is False
515 curs.execute("select generate_series(0, 5)")
516 curs.scroll(5)
517 with pytest.raises(e.OperationalError):
518 curs.scroll(-1)
519 curs.close()
520
521
522@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…