diff --git a/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_read.py b/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_read.py index da0c2651698..e3e4f48091d 100644 --- a/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_read.py +++ b/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_read.py @@ -5,7 +5,10 @@ from opentrons.drivers.types import ABSMeasurementMode, ABSMeasurementConfig from opentrons.hardware_control.modules import AbsorbanceReader -from opentrons.protocol_engine.errors import CannotPerformModuleAction, StorageLimitReachedError +from opentrons.protocol_engine.errors import ( + CannotPerformModuleAction, + StorageLimitReachedError, +) from opentrons.protocol_engine.execution import EquipmentHandler from opentrons.protocol_engine.resources import FileProvider @@ -141,9 +144,7 @@ async def test_read_raises_storage_limit( state_view=state_view, equipment=equipment, file_provider=file_provider ) - params = ReadAbsorbanceParams( - moduleId="unverified-module-id", - ) + params = ReadAbsorbanceParams(moduleId="unverified-module-id", fileName="test") mabsorbance_module_substate = decoy.mock(cls=AbsorbanceReaderSubState) absorbance_module_hw = decoy.mock(cls=AbsorbanceReader) @@ -168,8 +169,10 @@ async def test_read_raises_storage_limit( reference_wavelength=None, ) ) - decoy.when(mabsorbance_module_substate.configured_wavelengths).then_return(11) + decoy.when(mabsorbance_module_substate.configured_wavelengths).then_return( + [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] + ) decoy.when(state_view.files.get_filecount()).then_return(390) with pytest.raises(StorageLimitReachedError): - await subject.execute(params=params) \ No newline at end of file + await subject.execute(params=params)