From 7272ba648d4e01962398e71c3370e8c16b177e94 Mon Sep 17 00:00:00 2001 From: tamarzanzouri Date: Fri, 2 Aug 2024 16:24:34 -0400 Subject: [PATCH] linting --- robot-server/robot_server/runs/run_data_manager.py | 1 - robot-server/robot_server/runs/run_orchestrator_store.py | 1 - robot-server/tests/runs/router/test_commands_router.py | 4 +--- robot-server/tests/runs/test_run_data_manager.py | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/robot-server/robot_server/runs/run_data_manager.py b/robot-server/robot_server/runs/run_data_manager.py index b66b5912be8..03662382d1f 100644 --- a/robot-server/robot_server/runs/run_data_manager.py +++ b/robot-server/robot_server/runs/run_data_manager.py @@ -14,7 +14,6 @@ Command, ) from opentrons.protocol_engine.types import PrimitiveRunTimeParamValuesType -from opentrons.protocol_engine.errors import ErrorOccurrence from robot_server.protocols.protocol_store import ProtocolResource from robot_server.service.task_runner import TaskRunner diff --git a/robot-server/robot_server/runs/run_orchestrator_store.py b/robot-server/robot_server/runs/run_orchestrator_store.py index 4410ef6cc8a..227791c69a3 100644 --- a/robot-server/robot_server/runs/run_orchestrator_store.py +++ b/robot-server/robot_server/runs/run_orchestrator_store.py @@ -38,7 +38,6 @@ error_recovery_policy, ) from opentrons.protocol_engine.create_protocol_engine import create_protocol_engine -from opentrons.protocol_engine.errors import ErrorOccurrence from robot_server.protocols.protocol_store import ProtocolResource from opentrons.protocol_engine.types import ( diff --git a/robot-server/tests/runs/router/test_commands_router.py b/robot-server/tests/runs/router/test_commands_router.py index a8a9a0e7ac2..7687e991cc2 100644 --- a/robot-server/tests/runs/router/test_commands_router.py +++ b/robot-server/tests/runs/router/test_commands_router.py @@ -14,7 +14,7 @@ ) from robot_server.errors.error_responses import ApiError -from robot_server.service.json_api import MultiBodyMeta, SimpleMultiBody, ResponseList +from robot_server.service.json_api import MultiBodyMeta, ResponseList from robot_server.runs.command_models import ( RequestModelWithCommandCreate, @@ -447,7 +447,6 @@ async def test_get_run_commands_errors( decoy: Decoy, mock_run_data_manager: RunDataManager ) -> None: """It should return a list of all commands errors in a run.""" - decoy.when( mock_run_data_manager.get_command_error_slice( run_id="run-id", @@ -470,7 +469,6 @@ async def test_get_run_commands_errors_raises_no_run( decoy: Decoy, mock_run_data_manager: RunDataManager ) -> None: """It should return a list of all commands errors in a run.""" - error = ( pe_errors.ErrorOccurrence( id="error-id", diff --git a/robot-server/tests/runs/test_run_data_manager.py b/robot-server/tests/runs/test_run_data_manager.py index 33b8a65fff6..ca4a5f08d5d 100644 --- a/robot-server/tests/runs/test_run_data_manager.py +++ b/robot-server/tests/runs/test_run_data_manager.py @@ -856,7 +856,7 @@ def test_get_commands_errors_slice__not_current_run_raises( decoy.when(mock_run_orchestrator_store.current_run_id).then_return("run-not-id") with pytest.raises(RunNotCurrentError): - result = subject.get_command_error_slice("run-id", 1, 2) + subject.get_command_error_slice("run-id", 1, 2) def test_get_commands_errors_slice_current_run(