MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / test_train_default_iterations

Function test_train_default_iterations

lib/cli/tests/test_cli.py:45–50  ·  view source on GitHub ↗
(train_crew, runner)

Source from the content-addressed store, hash-verified

43
44@mock.patch("crewai_cli.cli.train_crew")
45def test_train_default_iterations(train_crew, runner):
46 result = runner.invoke(train)
47
48 train_crew.assert_called_once_with(5, "trained_agents_data.pkl")
49 assert result.exit_code == 0
50 assert "Training the Crew for 5 iterations" in result.output
51
52
53@mock.patch("crewai_cli.cli.train_crew")

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected