Skip to content

Commit

Permalink
robot-server fixup.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Sep 16, 2024
1 parent fbce524 commit 4c6ecb5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions robot-server/tests/runs/test_error_recovery_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
from decoy import Decoy


from opentrons.protocol_engine.commands.pipetting_common import (
LiquidNotFoundError,
LiquidNotFoundErrorInternalData,
)
from opentrons.protocol_engine.commands.pipetting_common import LiquidNotFoundError
from opentrons.protocol_engine.commands.command import (
DefinedErrorData,
)
Expand Down Expand Up @@ -38,9 +35,7 @@ def mock_command(decoy: Decoy) -> LiquidProbe:
@pytest.fixture
def mock_error_data(decoy: Decoy) -> CommandDefinedErrorData:
"""Get a mock TipPhysicallyMissingError."""
mock = decoy.mock(
cls=DefinedErrorData[LiquidNotFoundError, LiquidNotFoundErrorInternalData]
)
mock = decoy.mock(cls=DefinedErrorData[LiquidNotFoundError, None])
mock_lnfe = decoy.mock(cls=LiquidNotFoundError)
decoy.when(mock.public).then_return(mock_lnfe)
decoy.when(mock_lnfe.errorType).then_return("liquidNotFound")
Expand Down

0 comments on commit 4c6ecb5

Please sign in to comment.