(conn, format)
| 107 | |
| 108 | @pytest.mark.parametrize("format", pq.Format) |
| 109 | def test_rows(conn, format): |
| 110 | cur = conn.cursor() |
| 111 | with cur.copy(f"copy ({sample_values}) to stdout (format {format.name})") as copy: |
| 112 | copy.set_types(["int4", "int4", "text"]) |
| 113 | rows = list(copy.rows()) |
| 114 | |
| 115 | assert rows == sample_records |
| 116 | assert conn.info.transaction_status == pq.TransactionStatus.INTRANS |
| 117 | |
| 118 | |
| 119 | @pytest.mark.parametrize("format", pq.Format) |