MCPcopy
hub / github.com/psycopg/psycopg / test_finish

Function test_finish

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

Source from the content-addressed store, hash-verified

83
84
85def test_finish(pgconn):
86 assert pgconn.status == pq.ConnStatus.OK
87 pgconn.finish()
88 assert pgconn.status == pq.ConnStatus.BAD
89 pgconn.finish()
90 assert pgconn.status == pq.ConnStatus.BAD
91
92
93@pytest.mark.slow

Callers

nothing calls this directly

Calls 1

finishMethod · 0.45

Tested by

no test coverage detected