diff --git a/api/src/opentrons/protocol_engine/errors/__init__.py b/api/src/opentrons/protocol_engine/errors/__init__.py index c6adf4bfc16..2706a4bc862 100644 --- a/api/src/opentrons/protocol_engine/errors/__init__.py +++ b/api/src/opentrons/protocol_engine/errors/__init__.py @@ -79,6 +79,7 @@ StorageLimitReachedError, InvalidLiquidError, LiquidClassDoesNotExistError, + LiquidClassRedefinitionError, ) from .error_occurrence import ErrorOccurrence, ProtocolCommandFailedError @@ -166,4 +167,5 @@ "InvalidDispenseVolumeError", "StorageLimitReachedError", "LiquidClassDoesNotExistError", + "LiquidClassRedefinitionError", ] diff --git a/api/tests/opentrons/protocol_engine/commands/test_load_liquid_class.py b/api/tests/opentrons/protocol_engine/commands/test_load_liquid_class.py index 670a3607051..041a7b2f8ca 100644 --- a/api/tests/opentrons/protocol_engine/commands/test_load_liquid_class.py +++ b/api/tests/opentrons/protocol_engine/commands/test_load_liquid_class.py @@ -2,20 +2,23 @@ from decoy import Decoy import pytest -from opentrons_shared_data.liquid_classes import LiquidClassSchemaV1 +from opentrons_shared_data.liquid_classes.liquid_class_definition import ( + LiquidClassSchemaV1, +) from opentrons.protocol_engine.commands.command import SuccessData from opentrons.protocol_engine.commands.load_liquid_class import ( LoadLiquidClassImplementation, LoadLiquidClassParams, LoadLiquidClassResult, ) -from opentrons.protocol_engine.errors import LiquidClassDoesNotExistError -from opentrons.protocol_engine.errors.exceptions import LiquidClassRedefinitionError +from opentrons.protocol_engine.errors import ( + LiquidClassDoesNotExistError, + LiquidClassRedefinitionError, +) from opentrons.protocol_engine.resources.model_utils import ModelUtils from opentrons.protocol_engine.state import update_types from opentrons.protocol_engine.state.state import StateView from opentrons.protocol_engine.types import LiquidClassRecord -from tests.opentrons.protocol_engine.test_plugins import state_view @pytest.fixture