From e694f68e5dffe07980761cc4036fc1da7b64916e Mon Sep 17 00:00:00 2001 From: Amanpreet Singh Saimbhi Date: Wed, 23 Oct 2024 19:42:37 +0000 Subject: [PATCH] minor import fix for test_restart_job --- tests/dispatch/test_restart_job.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/dispatch/test_restart_job.py b/tests/dispatch/test_restart_job.py index 46e6e30..20116ee 100644 --- a/tests/dispatch/test_restart_job.py +++ b/tests/dispatch/test_restart_job.py @@ -20,7 +20,7 @@ from webinterface.queue import RestartTaskErrors, restart_dispatch from common.constants import mercure_names, mercure_actions from common.types import * -from tests.testing_common import mock_incoming_uid, mock_task_ids, make_fake_processor, mercure_config, FakeDockerContainer, mocked +from tests.testing_common import mock_incoming_uid, mock_task_ids, make_fake_processor, mercure_config, FakeDockerContainer, mocked, bookkeeper_port from typing import Tuple, Callable from pytest_mock import MockerFixture @@ -238,7 +238,6 @@ async def test_dispatching_with_processing(fs, mercure_config: Callable[[Dict], loaded_task["dispatch"] = copy.deepcopy(dispatch_info) with open(folder_path / mercure_names.TASKFILE, "w") as json_file: json.dump(loaded_task, json_file) - print(json.loads((folder_path / mercure_names.TASKFILE).read_text())) response = restart_dispatch(folder_path, outgoing_folder) assert "success" in response assert not folder_path.exists() # it's not in the success folder