MCPcopy
hub / github.com/psycopg/psycopg / test_pipeline_status

Function test_pipeline_status

tests/test_pipeline.py:43–49  ·  view source on GitHub ↗
(conn: psycopg.Connection[Any])

Source from the content-addressed store, hash-verified

41
42
43def test_pipeline_status(conn: psycopg.Connection[Any]) -> None:
44 assert conn._pipeline is None
45 with conn.pipeline() as p:
46 assert conn._pipeline is p
47 assert p.status == pq.PipelineStatus.ON
48 assert p.status == pq.PipelineStatus.OFF
49 assert not conn._pipeline
50
51
52def test_pipeline_reenter(conn: psycopg.Connection[Any]) -> None:

Callers

nothing calls this directly

Calls 1

pipelineMethod · 0.45

Tested by

no test coverage detected