MCPcopy
hub / github.com/psycopg/psycopg / test_pipeline_nested_sync_trace

Function test_pipeline_nested_sync_trace

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

Source from the content-addressed store, hash-verified

100
101
102def test_pipeline_nested_sync_trace(conn, trace):
103 t = trace.trace(conn)
104 with conn.pipeline():
105 with conn.pipeline():
106 pass
107 conn.close()
108 assert len([i for i in t if i.type == "Sync"]) == 2
109
110
111def test_cursor_stream(conn):

Callers

nothing calls this directly

Calls 3

traceMethod · 0.45
pipelineMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected