From f4547648b4da44826d04b7091b7d99f5baf0962d Mon Sep 17 00:00:00 2001 From: Lorenze Jay Date: Fri, 14 Feb 2025 09:14:37 -0800 Subject: [PATCH] Enable test coverage for Flow method execution failure event - Uncomment pytest.raises() in test_events to verify exception handling - Ensure test validates MethodExecutionFailedEvent emission during flow kickoff --- tests/utilities/test_events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utilities/test_events.py b/tests/utilities/test_events.py index 33aebc962..011317ad9 100644 --- a/tests/utilities/test_events.py +++ b/tests/utilities/test_events.py @@ -485,8 +485,8 @@ def test_flow_emits_method_execution_failed_event(): raise error flow = TestFlow() - # with pytest.raises(Exception): - flow.kickoff() + with pytest.raises(Exception): + flow.kickoff() assert len(received_events) == 1 assert received_events[0].method_name == "begin"