Return a `Connection` connected to the ``--test-dsn`` database.
(conn_cls, dsn, request, tracefile)
| 197 | |
| 198 | @pytest.fixture |
| 199 | def conn(conn_cls, dsn, request, tracefile): |
| 200 | """Return a `Connection` connected to the ``--test-dsn`` database.""" |
| 201 | check_connection_version(request.node) |
| 202 | |
| 203 | conn = conn_cls.connect(dsn) |
| 204 | with maybe_trace(conn.pgconn, tracefile, request.function): |
| 205 | yield conn |
| 206 | conn.close() |
| 207 | |
| 208 | |
| 209 | @pytest.fixture(params=[True, False], ids=["pipeline=on", "pipeline=off"]) |
nothing calls this directly
no test coverage detected