diff --git a/api/tests/opentrons/protocols/context/test_well.py b/api/tests/opentrons/protocols/context/test_well.py index a3ffdca2467..9a862b96838 100644 --- a/api/tests/opentrons/protocols/context/test_well.py +++ b/api/tests/opentrons/protocols/context/test_well.py @@ -7,6 +7,8 @@ ["A1", "A", "1"], ["A10", "A", "10"], ["Z100", "Z", "100"], + ["A0", "A", "0"], + ["B0100", "B", "0100"] ]) def test_row_column(name, row, col): w = WellImplementation(None, None, None, name=name) @@ -17,11 +19,9 @@ def test_row_column(name, row, col): @pytest.mark.parametrize(argnames=["name"], argvalues=[ - ["A0"], ["a1"], ["Aa1"], ["A 1"], - ["A0100"] ]) def test_row_column_fail(name): with pytest.raises(AssertionError, match=f"could not match '{name}'"): diff --git a/shared-data/python/opentrons_shared_data/labware/constants.py b/shared-data/python/opentrons_shared_data/labware/constants.py index 3c606773c1b..1ae9feec59e 100644 --- a/shared-data/python/opentrons_shared_data/labware/constants.py +++ b/shared-data/python/opentrons_shared_data/labware/constants.py @@ -3,4 +3,4 @@ # Regular expression to validate and extract row, column from well name # (ie A3, C1) -WELL_NAME_PATTERN: Final[str] = r'^([A-Z]+)([1-9][0-9]*)$' +WELL_NAME_PATTERN: Final[str] = r'^([A-Z]+)([0-9]+)$'