Skip to content

Commit

Permalink
Assert for a more specific exception in test_source_plate_uuid_value
Browse files Browse the repository at this point in the history
  • Loading branch information
yoldas committed Mar 11, 2024
1 parent c09167d commit 62da293
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def test_source_plate_uuid_value(app, source_plates):
SourcePlateUUID(PlateBarcode({})).value
SourcePlateUUID(PlateBarcode({"test": "another test"})).value

with raises(Exception):
with raises(Exception, match="Source plate with barcode '1234' not found"):
SourcePlateUUID(PlateBarcode({FIELD_EVENT_BARCODE: "1234"})).value

uuid = source_plates[0][FIELD_LH_SOURCE_PLATE_UUID]
Expand Down

0 comments on commit 62da293

Please sign in to comment.