(tmp_path, monkeypatch)
| 1022 | |
| 1023 | @pytest.fixture |
| 1024 | def 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") |
nothing calls this directly
no outgoing calls
no test coverage detected