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

Function agent_project

lib/cli/tests/test_create_agent.py:19–25  ·  view source on GitHub ↗
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

17
18@pytest.fixture
19def agent_project(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path:
20 monkeypatch.chdir(tmp_path)
21 result = CliRunner().invoke(
22 crewai, ["create", "agent", "Support-Agent", "--format", "python"]
23 )
24 assert result.exit_code == 0, result.output
25 return tmp_path / "support_agent"
26
27
28@pytest.mark.parametrize("model", [None, "openai/gpt-4o-mini"])

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected