Yield a PostgresqlCursor object needed for test infra system tests.
()
| 59 | |
| 60 | @pytest.fixture |
| 61 | def postgresql_cursor(): |
| 62 | """ |
| 63 | Yield a PostgresqlCursor object needed for test infra system tests. |
| 64 | """ |
| 65 | with PostgresqlConnection() as conn: |
| 66 | cursor = conn.cursor() |
| 67 | try: |
| 68 | yield cursor |
| 69 | finally: |
| 70 | cursor.close() |
| 71 | |
| 72 | |
| 73 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected