MCPcopy
hub / github.com/psycopg/psycopg / test_cursor_stream

Function test_cursor_stream

tests/test_pipeline.py:111–114  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

109
110
111def test_cursor_stream(conn):
112 with conn.pipeline(), conn.cursor() as cur:
113 with pytest.raises(psycopg.ProgrammingError):
114 next(cur.stream("select 1"))
115
116
117def test_server_cursor(conn):

Callers

nothing calls this directly

Calls 3

pipelineMethod · 0.45
cursorMethod · 0.45
streamMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…