mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
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:
@@ -485,8 +485,8 @@ def test_flow_emits_method_execution_failed_event():
|
|||||||
raise error
|
raise error
|
||||||
|
|
||||||
flow = TestFlow()
|
flow = TestFlow()
|
||||||
# with pytest.raises(Exception):
|
with pytest.raises(Exception):
|
||||||
flow.kickoff()
|
flow.kickoff()
|
||||||
|
|
||||||
assert len(received_events) == 1
|
assert len(received_events) == 1
|
||||||
assert received_events[0].method_name == "begin"
|
assert received_events[0].method_name == "begin"
|
||||||
|
|||||||
Reference in New Issue
Block a user