(request, conn)
| 208 | |
| 209 | @pytest.fixture(params=[True, False], ids=["pipeline=on", "pipeline=off"]) |
| 210 | def pipeline(request, conn): |
| 211 | if request.param: |
| 212 | if not psycopg.Pipeline.is_supported(): |
| 213 | pytest.skip("pipeline mode not supported") |
| 214 | with conn.pipeline() as p: |
| 215 | yield p |
| 216 | return |
| 217 | else: |
| 218 | yield None |
| 219 | |
| 220 | |
| 221 | @pytest.fixture |
nothing calls this directly
no test coverage detected