Skip to content

Commit

Permalink
fixed instrument core test
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-kulkarni committed Jul 2, 2024
1 parent 16722ed commit 8ea76ee
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test for the ProtocolEngine-based instrument API core."""
from typing import cast, Optional, Union

from opentrons_shared_data.errors.exceptions import PipetteLiquidNotFoundError
import pytest
from decoy import Decoy

Expand Down Expand Up @@ -1302,8 +1303,10 @@ def test_find_liquid_level(
well_core = WellCore(
name="my cool well", labware_id="123abc", engine_client=mock_engine_client
)
result = subject.find_liquid_level(well_core)
assert result == 0
try:
subject.find_liquid_level(well_core)
except PipetteLiquidNotFoundError:
assert True
decoy.verify(
mock_engine_client.execute_command_with_result(
cmd.LiquidProbeParams(
Expand Down

0 comments on commit 8ea76ee

Please sign in to comment.