Skip to content

Commit

Permalink
ensure test_scroll_errors and test_sscursor_scroll_errors initialize …
Browse files Browse the repository at this point in the history
…their tables (#694)

this resulted in test failures in some cases.
  • Loading branch information
Nothing4You authored Jan 28, 2022
1 parent ee9fde2 commit b515859
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ async def test_scroll_absolute(connection_creator):
@pytest.mark.run_loop
async def test_scroll_errors(connection_creator):
conn = await connection_creator()
await _prepare(conn)
cur = await conn.cursor()

with pytest.raises(ProgrammingError):
Expand Down
3 changes: 2 additions & 1 deletion tests/test_sscursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ async def test_sscursor_scroll_absolute(connection):
@pytest.mark.run_loop
async def test_sscursor_scroll_errors(connection):
conn = connection
await _prepare(conn)
cursor = await conn.cursor(SSCursor)

await cursor.execute('SELECT * FROM tz_data;')
Expand All @@ -151,7 +152,7 @@ async def test_sscursor_scroll_errors(connection):
async def test_sscursor_cancel(connection):
conn = connection
cur = await conn.cursor(SSCursor)
# Prepare ALOT of data
# Prepare A LOT of data

await cur.execute('DROP TABLE IF EXISTS long_seq;')
await cur.execute(
Expand Down

0 comments on commit b515859

Please sign in to comment.