Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

test(flow): pass show=False in test_flow_plotting to not open a browser

Greyson LaLonde5267c059f5eb
diff --git a/lib/crewai/tests/test_flow.py b/lib/crewai/tests/test_flow.py
index 27a62f5a2..ab50af05e 100644
--- a/lib/crewai/tests/test_flow.py
+++ b/lib/crewai/tests/test_flow.py
@@ -1040,7 +1040,7 @@ def test_flow_plotting():
received_events.append(event)
event_received.set()
- flow.plot("test_flow")
+ flow.plot("test_flow", show=False)
assert event_received.wait(timeout=5), "Timeout waiting for plot event"
assert len(received_events) == 1