Skip to content

Commit

Permalink
working basic test for open lid
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Dec 20, 2024
1 parent d07b6ee commit db386d0
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def absorbance_def() -> LabwareDefinition:


@pytest.mark.parametrize(
"hardware_lid_status", (AbsorbanceReaderLidStatus.ON, AbsorbanceReaderLidStatus.OFF)
"hardware_lid_status",
(AbsorbanceReaderLidStatus.ON, AbsorbanceReaderLidStatus.OFF),
)
async def test_absorbance_reader_implementation(
decoy: Decoy,
Expand Down Expand Up @@ -119,14 +120,11 @@ async def test_absorbance_reader_implementation(
assert result == SuccessData(
public=OpenLidResult(),
state_update=update_types.StateUpdate(
files_added=update_types.FilesAddedUpdate(file_ids=[]),
module_state_update=update_types.ModuleStateUpdate(
module_id="unverified-module-id",
module_id="module-id",
module_type="absorbanceReaderType",
absorbance_reader_lid=update_types.AbsorbanceReaderLidUpdate(
is_lid_on=True
if hardware_lid_status == AbsorbanceReaderLidStatus.ON
else False
is_lid_on=False
),
),
),
Expand Down

0 comments on commit db386d0

Please sign in to comment.