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

Function _create

lib/cli/tests/test_agent_tools.py:21–27  ·  view source on GitHub ↗
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch, fmt: str)

Source from the content-addressed store, hash-verified

19
20
21def _create(tmp_path: Path, monkeypatch: pytest.MonkeyPatch, fmt: str) -> Path:
22 monkeypatch.chdir(tmp_path)
23 result = CliRunner().invoke(crewai, ["create", "agent", "helper", "--format", fmt])
24 assert result.exit_code == 0, result.output
25 project = tmp_path / "helper"
26 monkeypatch.chdir(project)
27 return project
28
29
30def _definition(project: Path) -> dict:

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected