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

Function test_test_invalid_string_iterations

lib/cli/tests/test_cli.py:154–162  ·  view source on GitHub ↗
(evaluate_crew, runner)

Source from the content-addressed store, hash-verified

152
153@mock.patch("crewai_cli.cli.evaluate_crew")
154def test_test_invalid_string_iterations(evaluate_crew, runner):
155 result = runner.invoke(test, ["--n-iterations", "invalid"])
156
157 evaluate_crew.assert_not_called()
158 assert result.exit_code == 2
159 assert (
160 "Usage: test [OPTIONS]\nTry 'test --help' for help.\n\nError: Invalid value for '-n' / '--n-iterations': 'invalid' is not a valid integer.\n"
161 in result.output
162 )
163
164
165def test_train_help_hides_legacy_flag_aliases(runner):

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected