We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c9fc1a commit a30072cCopy full SHA for a30072c
services/storage/tests/fixtures/data_models.py
@@ -41,9 +41,7 @@ async def _user_context(
41
stmt = users.insert().values(**random_user(name=name)).returning(users.c.id)
42
async with sqlalchemy_async_engine.begin() as conn:
43
result = await conn.execute(stmt)
44
- await conn.commit()
45
- row = result.fetchone()
46
- assert row
+ row = result.one()
47
assert isinstance(row.id, int)
48
49
try:
0 commit comments