lidavidm commented on PR #57:
URL: https://github.com/apache/arrow-adbc/pull/57#issuecomment-1228933032
So now this works:
```python
import pytest
from adbc_driver_postgres import dbapi
@pytest.fixture
def postgres():
with dbapi.connect(
"postgres://localhost:5432/postgres?user=postgres&password=password"
) as conn:
yield conn
def test_query_trivial(postgres):
with postgres.cursor() as cur:
cur.execute("SELECT 1")
assert cur.fetchone() == (1,)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]