MCPcopy
hub / github.com/psycopg/psycopg / test_repr

Function test_repr

tests/test_pipeline.py:26–33  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

24
25
26def test_repr(conn):
27 with conn.pipeline() as p:
28 name = "psycopg.AsyncPipeline" if is_async(conn) else "psycopg.Pipeline"
29 assert name in repr(p)
30 assert "[IDLE, pipeline=ON]" in repr(p)
31
32 conn.close()
33 assert "[BAD]" in repr(p)
34
35
36def test_connection_closed(conn):

Callers

nothing calls this directly

Calls 3

is_asyncFunction · 0.85
pipelineMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…