Skip to content

Commit c66590d

Browse files
committed
fixes test helper
1 parent c93168a commit c66590d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

services/web/server/tests/integration/01/test_computation.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,10 @@ async def _get_project_workbench_from_db(
254254
# this check is only there to check the comp_pipeline is there
255255
print(f"--> looking for project {project_id=} in projects table...")
256256
async with sqlalchemy_async_engine.connect() as conn:
257-
rows = (
258-
conn.execute(
259-
sa.select(projects_nodes).where(
260-
projects_nodes.c.project_uuid == project_id
261-
)
262-
)
263-
.mappings()
264-
.all()
257+
result = await conn.execute(
258+
sa.select(projects_nodes).where(projects_nodes.c.project_uuid == project_id)
265259
)
260+
rows = result.mappings().all()
266261

267262
return {row["node_id"]: dict(row) for row in rows}
268263

0 commit comments

Comments
 (0)