From c98a40b3e2db0742b5e20fba87daaf3bfdade048 Mon Sep 17 00:00:00 2001 From: Gerda Shank Date: Thu, 10 Oct 2024 17:41:55 -0400 Subject: [PATCH] Fix unit test --- tests/unit/test_events.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/unit/test_events.py b/tests/unit/test_events.py index 68a3edc2614..085f849492e 100644 --- a/tests/unit/test_events.py +++ b/tests/unit/test_events.py @@ -537,10 +537,7 @@ def test_bad_serialization(): with pytest.raises(Exception) as excinfo: types.Note(param_event_doesnt_have="This should break") - assert ( - str(excinfo.value) - == "[Note]: Unable to parse dict {'param_event_doesnt_have': 'This should break'}" - ) + assert 'has no field named "param_event_doesnt_have" at "Note"' in str(excinfo.value) def test_single_run_error():