33
44
55@pytest .mark .asyncio
6- async def test_cursor_ddl (session_pool ):
7- cursor = ydb_dbapi .Cursor (session_pool = session_pool )
6+ async def test_cursor_ddl (session ):
7+ cursor = ydb_dbapi .Cursor (session = session )
88
99 yql = """
1010 CREATE TABLE table (
@@ -27,8 +27,8 @@ async def test_cursor_ddl(session_pool):
2727
2828
2929@pytest .mark .asyncio
30- async def test_cursor_dml (session_pool ):
31- cursor = ydb_dbapi .Cursor (session_pool = session_pool )
30+ async def test_cursor_dml (session ):
31+ cursor = ydb_dbapi .Cursor (session = session )
3232 yql_text = """
3333 INSERT INTO table (id, val) VALUES
3434 (1, 1),
@@ -39,7 +39,7 @@ async def test_cursor_dml(session_pool):
3939 await cursor .execute (query = yql_text )
4040 assert await cursor .fetchone () is None
4141
42- cursor = ydb_dbapi .Cursor (session_pool = session_pool )
42+ cursor = ydb_dbapi .Cursor (session = session )
4343
4444 yql_text = """
4545 SELECT COUNT(*) FROM table as sum
@@ -53,8 +53,8 @@ async def test_cursor_dml(session_pool):
5353
5454
5555@pytest .mark .asyncio
56- async def test_cursor_fetch_one (session_pool ):
57- cursor = ydb_dbapi .Cursor (session_pool = session_pool )
56+ async def test_cursor_fetch_one (session ):
57+ cursor = ydb_dbapi .Cursor (session = session )
5858 yql_text = """
5959 INSERT INTO table (id, val) VALUES
6060 (1, 1),
@@ -64,7 +64,7 @@ async def test_cursor_fetch_one(session_pool):
6464 await cursor .execute (query = yql_text )
6565 assert await cursor .fetchone () is None
6666
67- cursor = ydb_dbapi .Cursor (session_pool = session_pool )
67+ cursor = ydb_dbapi .Cursor (session = session )
6868
6969 yql_text = """
7070 SELECT id, val FROM table
@@ -82,8 +82,8 @@ async def test_cursor_fetch_one(session_pool):
8282
8383
8484@pytest .mark .asyncio
85- async def test_cursor_fetch_many (session_pool ):
86- cursor = ydb_dbapi .Cursor (session_pool = session_pool )
85+ async def test_cursor_fetch_many (session ):
86+ cursor = ydb_dbapi .Cursor (session = session )
8787 yql_text = """
8888 INSERT INTO table (id, val) VALUES
8989 (1, 1),
@@ -95,7 +95,7 @@ async def test_cursor_fetch_many(session_pool):
9595 await cursor .execute (query = yql_text )
9696 assert await cursor .fetchone () is None
9797
98- cursor = ydb_dbapi .Cursor (session_pool = session_pool )
98+ cursor = ydb_dbapi .Cursor (session = session )
9999
100100 yql_text = """
101101 SELECT id, val FROM table
@@ -120,8 +120,8 @@ async def test_cursor_fetch_many(session_pool):
120120
121121
122122@pytest .mark .asyncio
123- async def test_cursor_fetch_all (session_pool ):
124- cursor = ydb_dbapi .Cursor (session_pool = session_pool )
123+ async def test_cursor_fetch_all (session ):
124+ cursor = ydb_dbapi .Cursor (session = session )
125125 yql_text = """
126126 INSERT INTO table (id, val) VALUES
127127 (1, 1),
@@ -132,7 +132,7 @@ async def test_cursor_fetch_all(session_pool):
132132 await cursor .execute (query = yql_text )
133133 assert await cursor .fetchone () is None
134134
135- cursor = ydb_dbapi .Cursor (session_pool = session_pool )
135+ cursor = ydb_dbapi .Cursor (session = session )
136136
137137 yql_text = """
138138 SELECT id, val FROM table
@@ -152,8 +152,8 @@ async def test_cursor_fetch_all(session_pool):
152152
153153
154154@pytest .mark .asyncio
155- async def test_cursor_next_set (session_pool ):
156- cursor = ydb_dbapi .Cursor (session_pool = session_pool )
155+ async def test_cursor_next_set (session ):
156+ cursor = ydb_dbapi .Cursor (session = session )
157157 yql_text = """SELECT 1 as val; SELECT 2 as val;"""
158158
159159 await cursor .execute (query = yql_text )
0 commit comments