MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / test_strips_github_token

Method test_strips_github_token

tests/unit/test_agent_cli.py:291–294  ·  view source on GitHub ↗
(self, monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

289 assert "SSH_AUTH_SOCK" not in env
290
291 def test_strips_github_token(self, monkeypatch: pytest.MonkeyPatch) -> None:
292 monkeypatch.setenv("GITHUB_TOKEN", "ghp_token")
293 env = _scrub_env()
294 assert "GITHUB_TOKEN" not in env
295
296 def test_preserves_safe_vars(self, monkeypatch: pytest.MonkeyPatch) -> None:
297 monkeypatch.setenv("PATH", "/usr/bin:/bin")

Callers

nothing calls this directly

Calls 1

_scrub_envFunction · 0.90

Tested by

no test coverage detected