Skip to content

Commit

Permalink
chore: update sample docstring (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon authored Oct 30, 2023
1 parent 8121df6 commit 1799674
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/system/test_sqlalchemy_asyncpg_direct_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ def create_sqlalchemy_engine(
db,
)
with engine.connect() as conn:
time = conn.execute(sqlalchemy.text("SELECT NOW()")).fetchone()
async with engine.connect() as conn:
result = await conn.execute(sqlalchemy.text("SELECT NOW()"))
conn.commit()
time = result.fetchone()
Args:
ip_address (str):
Expand Down

0 comments on commit 1799674

Please sign in to comment.