MCPcopy
hub / github.com/opentrace/opentrace / test_whoami_otuat_token

Function test_whoami_otuat_token

agent/tests/opentrace_agent/cli/test_auth.py:262–268  ·  view source on GitHub ↗
(tmp_path: Path, monkeypatch: object)

Source from the content-addressed store, hash-verified

260
261
262def test_whoami_otuat_token(tmp_path: Path, monkeypatch: object) -> None:
263 _patch_base_dir(monkeypatch, tmp_path)
264 save_tokens({"access_token": "otuat_abc", "issuer": "https://api.opentrace.ai", "scope": "read write"})
265
266 result = runner.invoke(app, ["whoami"])
267 assert result.exit_code == 0
268 assert "user (otuat)" in result.output
269
270
271def test_whoami_legacy_otoat(tmp_path: Path, monkeypatch: object) -> None:

Callers

nothing calls this directly

Calls 2

save_tokensFunction · 0.90
_patch_base_dirFunction · 0.70

Tested by

no test coverage detected