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
This commit is contained in:
Lorenze Jay
2025-02-14 09:14:37 -08:00
parent a557275112
commit f4547648b4

View File

@@ -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"