Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Sep 18, 2024
2 parents f6c576f + 3473ef1 commit fb8b39b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

SN_PARSER = re.compile(r'ATTRS{serial}=="(?P<serial>.+?)"')
VERSION_PARSER = re.compile(r"Absorbance (?P<version>V\d+\.\d+\.\d+)")
SERIAL_PARSER = re.compile(r"SN: (?P<serial>BYO[A-Z]{3}[0-9]{5})")
SERIAL_PARSER = re.compile(r"(?P<serial>BYO[A-Z]{3}[0-9]{5})")


class AsyncByonoy:
Expand Down
4 changes: 2 additions & 2 deletions api/tests/opentrons/drivers/absorbance_reader/test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ async def test_driver_get_device_info(
) -> None:

DEVICE_INFO = MagicMock(AbsorbanceHidInterface.DeviceInfo)
DEVICE_INFO.ref_no = ""
DEVICE_INFO.sn = "SN: BYOMAA00013 REF: DE MAA 001"
DEVICE_INFO.ref_no = "DE MAA 001"
DEVICE_INFO.sn = "BYOMAA00013"
DEVICE_INFO.version = "Absorbance V1.0.2 2024-04-18"

mock_interface.get_device_information.return_value = (
Expand Down

0 comments on commit fb8b39b

Please sign in to comment.