-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09703e8
commit 62e1a88
Showing
2 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
api/tests/opentrons/protocol_engine/commands/unsafe/test_ungrip_labware.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Test update-position-estimator commands.""" | ||
from decoy import Decoy | ||
|
||
from opentrons.protocol_engine.commands.unsafe.unsafe_ungrip_labware import ( | ||
UnsafeUngripLabwareParams, | ||
UnsafeUngripLabwareResult, | ||
UnsafeUngripLabwareImplementation, | ||
) | ||
from opentrons.protocol_engine.commands.command import SuccessData | ||
from opentrons.protocol_engine.execution import GantryMover | ||
from opentrons.protocol_engine.types import MotorAxis | ||
from opentrons.hardware_control import OT3HardwareControlAPI | ||
from opentrons.hardware_control.types import Axis | ||
|
||
|
||
async def test_engage_axes_implementation( | ||
decoy: Decoy, ot3_hardware_api: OT3HardwareControlAPI, gantry_mover: GantryMover | ||
) -> None: | ||
"""Test EngageAxes command execution.""" | ||
subject = UnsafeUngripLabwareImplementation(hardware_api=ot3_hardware_api) | ||
|
||
result = await subject.execute(params=UnsafeUngripLabwareParams()) | ||
|
||
assert result == SuccessData(public=UnsafeUngripLabwareResult(), private=None) | ||
|
||
decoy.verify( | ||
await ot3_hardware_api.ungrip(), | ||
) |