Skip to content

Commit 6e9590b

Browse files
continue fixing
1 parent 6486b61 commit 6e9590b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

services/director-v2/tests/unit/with_dbs/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ async def running_project(
281281
tasks=await create_tasks(
282282
user=user,
283283
project=created_project,
284+
workbench=fake_workbench_without_outputs,
284285
state=StateType.RUNNING,
285286
progress=0.0,
286287
start=now_time,
@@ -318,6 +319,7 @@ async def running_project_mark_for_cancellation(
318319
tasks=await create_tasks(
319320
user=user,
320321
project=created_project,
322+
workbench=fake_workbench_without_outputs,
321323
state=StateType.RUNNING,
322324
progress=0.0,
323325
start=now_time,

services/director-v2/tests/unit/with_dbs/test_cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def test_project_save_state_ok(
193193
mock_save_service_state: None,
194194
cli_runner: CliRunner,
195195
project_at_db: ProjectAtDB,
196+
fake_workbench_without_outputs: dict[str, Any],
196197
capsys: pytest.CaptureFixture,
197198
):
198199
with capsys.disabled() as _disabled:
@@ -204,8 +205,8 @@ def test_project_save_state_ok(
204205
print(result.stdout)
205206
assert result.exit_code == os.EX_OK, _format_cli_error(result)
206207
assert result.stdout.endswith(f"Save complete for project {project_at_db.uuid}\n")
207-
for node_uuid, node_content in project_at_db.workbench.items():
208-
assert f"Saving state for {node_uuid} {node_content.label}" in result.stdout
208+
for node_uuid, node_content in fake_workbench_without_outputs.items():
209+
assert f"Saving state for {node_uuid} {node_content['label']}" in result.stdout
209210

210211
assert (
211212
f"Saving project '{project_at_db.uuid}' - '{project_at_db.name}'"

0 commit comments

Comments
 (0)