MCPcopy
hub / github.com/psycopg/psycopg / test_flush_request

Function test_flush_request

tests/pq/test_pipeline.py:77–85  ·  view source on GitHub ↗
(pgconn)

Source from the content-addressed store, hash-verified

75
76@pytest.mark.libpq(">= 14")
77def test_flush_request(pgconn):
78 assert pgconn.pipeline_status == pq.PipelineStatus.OFF
79 pgconn.enter_pipeline_mode()
80 pgconn.send_query_params(b"select $1", [b"1"], param_types=[25])
81 pgconn.send_flush_request()
82 r = pgconn.get_result()
83 assert r.status == pq.ExecStatus.TUPLES_OK
84 assert r.get_value(0, 0) == b"1"
85 pgconn.exit_pipeline_mode()
86
87
88@pytest.fixture

Callers

nothing calls this directly

Calls 6

enter_pipeline_modeMethod · 0.45
send_query_paramsMethod · 0.45
send_flush_requestMethod · 0.45
get_resultMethod · 0.45
get_valueMethod · 0.45
exit_pipeline_modeMethod · 0.45

Tested by

no test coverage detected