Skip to content

Commit 1c9de98

Browse files
committed
minor
1 parent 17f60de commit 1c9de98

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

services/director-v2/tests/integration/01/test_computation_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,12 @@ async def test_run_partial_computation(
416416

417417
def _convert_to_pipeline_details(
418418
project: ProjectAtDB,
419-
exp_pipeline_adj_list: dict[int, list[int]],
420-
exp_node_states: dict[int, dict[str, Any]],
419+
expected_pipeline_adj_list: dict[int, list[int]],
420+
expected_node_states: dict[int, dict[str, Any]],
421421
) -> PipelineDetails:
422422
workbench_node_uuids = list(project.workbench.keys())
423423
converted_adj_list: dict[NodeID, list[NodeID]] = {}
424-
for node_key, next_nodes in exp_pipeline_adj_list.items():
424+
for node_key, next_nodes in expected_pipeline_adj_list.items():
425425
converted_adj_list[NodeID(workbench_node_uuids[node_key])] = [
426426
NodeID(workbench_node_uuids[n]) for n in next_nodes
427427
]
@@ -434,7 +434,7 @@ def _convert_to_pipeline_details(
434434
currentStatus=s.get("currentStatus", RunningState.NOT_STARTED),
435435
progress=s.get("progress"),
436436
)
437-
for n, s in exp_node_states.items()
437+
for n, s in expected_node_states.items()
438438
}
439439
pipeline_progress = 0
440440
for node_id in converted_adj_list:

services/director-v2/tests/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def update_project_workbench_with_comp_tasks(
3737
postgres_db: sa.engine.Engine,
3838
) -> Callable:
3939
def _updator(project_uuid: str):
40-
with postgres_db.connect() as con:
40+
with postgres_db.connect() as con, con.begin():
4141

4242
# select all projects_nodes for this project
4343
result = con.execute(

0 commit comments

Comments
 (0)