Skip to content

Commit

Permalink
Assert for a more specific exception in test_source_plate_uuid_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yoldas committed Mar 11, 2024
1 parent 62da293 commit 83f0ed7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def test_source_plate_uuid_errors(app, source_plates):

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

assert len(source_plate_property.errors) > 0
Expand Down

0 comments on commit 83f0ed7

Please sign in to comment.