Skip to content

Commit a30072c

Browse files
committed
minor
1 parent 6c9fc1a commit a30072c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

services/storage/tests/fixtures/data_models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ async def _user_context(
4141
stmt = users.insert().values(**random_user(name=name)).returning(users.c.id)
4242
async with sqlalchemy_async_engine.begin() as conn:
4343
result = await conn.execute(stmt)
44-
await conn.commit()
45-
row = result.fetchone()
46-
assert row
44+
row = result.one()
4745
assert isinstance(row.id, int)
4846

4947
try:

0 commit comments

Comments
 (0)