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

Function isolated_user_data

lib/cli/tests/test_cli.py:1024–1030  ·  view source on GitHub ↗
(tmp_path, monkeypatch)

Source from the content-addressed store, hash-verified

1022
1023@pytest.fixture
1024def isolated_user_data(tmp_path, monkeypatch):
1025 monkeypatch.setenv("CREWAI_STORAGE_DIR", "crewai_cli_trace_consent")
1026 monkeypatch.setattr(
1027 "crewai_core.paths.appdirs.user_data_dir",
1028 lambda app, author: str(tmp_path / app),
1029 )
1030 monkeypatch.delenv("CREWAI_TRACING_ENABLED", raising=False)
1031
1032
1033@pytest.mark.usefixtures("isolated_user_data")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected