MCPcopy
hub / github.com/psycopg/psycopg / test_pipeline_exit_sync_trace

Function test_pipeline_exit_sync_trace

tests/test_pipeline.py:94–99  ·  view source on GitHub ↗
(conn, trace)

Source from the content-addressed store, hash-verified

92
93
94def test_pipeline_exit_sync_trace(conn, trace):
95 t = trace.trace(conn)
96 with conn.pipeline():
97 pass
98 conn.close()
99 assert len([i for i in t if i.type == "Sync"]) == 1
100
101
102def test_pipeline_nested_sync_trace(conn, trace):

Callers

nothing calls this directly

Calls 3

traceMethod · 0.45
pipelineMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected