diff --git a/tests/classes/event_properties/test_event_property_definitions.py b/tests/classes/event_properties/test_event_property_definitions.py index c4b4c2c1..9a6ef0bb 100644 --- a/tests/classes/event_properties/test_event_property_definitions.py +++ b/tests/classes/event_properties/test_event_property_definitions.py @@ -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