(conn)
| 24 | |
| 25 | |
| 26 | def 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 | |
| 36 | def test_connection_closed(conn): |