Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Aug 2, 2024
1 parent 299779c commit 7272ba6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion robot-server/robot_server/runs/run_data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion robot-server/robot_server/runs/run_orchestrator_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 1 addition & 3 deletions robot-server/tests/runs/router/test_commands_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion robot-server/tests/runs/test_run_data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7272ba6

Please sign in to comment.