Skip to content

Commit 962f53b

Browse files
committed
Add execute_many, fetch_row, fetch_val to connection; impove docstrings
1 parent 2bbf32d commit 962f53b

File tree

6 files changed

+279
-221
lines changed

6 files changed

+279
-221
lines changed

python/tests/test_connection.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async def test_connection_execute(
2626
assert len(conn_result.result()) == number_database_records
2727

2828

29-
async def test_connection_transaction(
29+
async def test_connection_connection(
3030
psql_pool: PSQLPool,
3131
) -> None:
3232
"""Test that connection can create transactions."""
@@ -45,7 +45,7 @@ async def test_connection_transaction(
4545
[],
4646
],
4747
)
48-
async def test_transaction_execute_many(
48+
async def test_connection_execute_many(
4949
psql_pool: PSQLPool,
5050
table_name: str,
5151
number_database_records: int,
@@ -66,7 +66,7 @@ async def test_transaction_execute_many(
6666
) - number_database_records == len(insert_values)
6767

6868

69-
async def test_transaction_fetch_row(
69+
async def test_connection_fetch_row(
7070
psql_pool: PSQLPool,
7171
table_name: str,
7272
) -> None:
@@ -79,7 +79,7 @@ async def test_transaction_fetch_row(
7979
assert isinstance(result, dict)
8080

8181

82-
async def test_transaction_fetch_row_more_than_one_row(
82+
async def test_connection_fetch_row_more_than_one_row(
8383
psql_pool: PSQLPool,
8484
table_name: str,
8585
) -> None:
@@ -91,7 +91,7 @@ async def test_transaction_fetch_row_more_than_one_row(
9191
)
9292

9393

94-
async def test_transaction_fetch_val(
94+
async def test_connection_fetch_val(
9595
psql_pool: PSQLPool,
9696
table_name: str,
9797
) -> None:
@@ -103,7 +103,7 @@ async def test_transaction_fetch_val(
103103
assert isinstance(value, int)
104104

105105

106-
async def test_transaction_fetch_val_more_than_one_row(
106+
async def test_connection_fetch_val_more_than_one_row(
107107
psql_pool: PSQLPool,
108108
table_name: str,
109109
) -> None:

0 commit comments

Comments
 (0)