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

Function project

lib/cli/tests/deploy/test_agent_import_security.py:18–28  ·  view source on GitHub ↗
(request, tmp_path, monkeypatch)

Source from the content-addressed store, hash-verified

16
17@pytest.fixture(params=["json", "yaml"])
18def project(request, tmp_path, monkeypatch):
19 monkeypatch.chdir(tmp_path)
20 create_agent("support_agent", format=request.param)
21 root = tmp_path / "support_agent"
22 definition = root / f"agent.{request.param}"
23 data = yaml.safe_load(definition.read_text())
24 data.pop("tools")
25 data.pop("skills")
26 definition.write_text(json.dumps(data))
27 (root / ".env").write_text("OPENAI_API_KEY=test-placeholder-key\n")
28 return root
29
30
31@pytest.fixture

Callers

nothing calls this directly

Calls 3

create_agentFunction · 0.90
read_textMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected