From 716ec083bcc2311acea7fc920bf581ebe7ce4e10 Mon Sep 17 00:00:00 2001 From: tamarzanzouri Date: Tue, 24 Dec 2024 13:20:28 -0500 Subject: [PATCH] model_construct with type ignore --- .../commands/absorbance_reader/test_close_lid.py | 4 ++-- .../commands/absorbance_reader/test_open_lid.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_close_lid.py b/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_close_lid.py index 5f4aa1883b8..c4bfd61d21f 100644 --- a/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_close_lid.py +++ b/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_close_lid.py @@ -38,10 +38,10 @@ @pytest.fixture def absorbance_def() -> LabwareDefinition: """Get a tip rack Pydantic model definition value object.""" - return LabwareDefinition.construct( + return LabwareDefinition.model_construct( # type: ignore[call-arg] namespace="test", version=1, - parameters=Parameters.construct( + parameters=Parameters.model_construct( # type: ignore[call-arg] loadName="cool-labware", tipOverlap=None, # add a None value to validate serialization to dictionary ), diff --git a/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_open_lid.py b/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_open_lid.py index 5ba2b1815f0..56d7feb3620 100644 --- a/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_open_lid.py +++ b/api/tests/opentrons/protocol_engine/commands/absorbance_reader/test_open_lid.py @@ -38,10 +38,10 @@ @pytest.fixture def absorbance_def() -> LabwareDefinition: """Get a tip rack Pydantic model definition value object.""" - return LabwareDefinition.construct( + return LabwareDefinition.model_construct( # type: ignore[call-arg] namespace="test", version=1, - parameters=Parameters.construct( + parameters=Parameters.model_construct( # type: ignore[call-arg] loadName="cool-labware", tipOverlap=None, # add a None value to validate serialization to dictionary ),