Skip to content

Commit 15bf03d

Browse files
committed
Continue adding tests
1 parent f566768 commit 15bf03d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

python/tests/test_cursor.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pytest
2+
3+
from psqlpy import PSQLPool
4+
5+
6+
@pytest.mark.anyio
7+
async def test_cursor_fetch(
8+
psql_pool: PSQLPool,
9+
table_name: str,
10+
number_database_records: int,
11+
) -> None:
12+
connection = await psql_pool.connection()
13+
transaction = connection.transaction()
14+
await transaction.cursor(
15+
querystring=f"SELECT * FROM {table_name}",
16+
)

0 commit comments

Comments
 (0)