Skip to content

Commit 1799674

Browse files
chore: update sample docstring (#146)
1 parent 8121df6 commit 1799674

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/system/test_sqlalchemy_asyncpg_direct_connection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ def create_sqlalchemy_engine(
4848
db,
4949
)
5050
51-
with engine.connect() as conn:
52-
time = conn.execute(sqlalchemy.text("SELECT NOW()")).fetchone()
51+
async with engine.connect() as conn:
52+
result = await conn.execute(sqlalchemy.text("SELECT NOW()"))
5353
conn.commit()
54+
time = result.fetchone()
5455
5556
Args:
5657
ip_address (str):

0 commit comments

Comments
 (0)