MCPcopy
hub / github.com/psycopg/psycopg / test_pipeline_not_supported

Function test_pipeline_not_supported

tests/pq/test_pq.py:57–65  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

55
56@pytest.mark.libpq("< 14")
57def test_pipeline_not_supported(conn):
58 assert not psycopg.Pipeline.is_supported()
59 assert not psycopg.AsyncPipeline.is_supported()
60
61 with pytest.raises(psycopg.NotSupportedError) as exc:
62 with conn.pipeline():
63 pass
64
65 assert "requires libpq version 14.0 or newer" in str(exc.value)

Callers

nothing calls this directly

Calls 2

is_supportedMethod · 0.80
pipelineMethod · 0.45

Tested by

no test coverage detected