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

Function platform_setup

lib/cli/tests/test_agent_tools.py:37–45  ·  view source on GitHub ↗
(monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

35
36@pytest.fixture
37def platform_setup(monkeypatch: pytest.MonkeyPatch) -> list[list[str]]:
38 calls: list[list[str]] = []
39
40 def setup(tools: list[str]) -> str | None:
41 calls.append(tools)
42 return "amp-token" if any(t.startswith("platform:") for t in tools) else None
43
44 monkeypatch.setattr(agent_tools, "setup_platform_tools", setup)
45 return calls
46
47
48@pytest.mark.parametrize("fmt", ["json", "yaml"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected