mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +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
|
||||
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user