(tmp_path: Path, monkeypatch: object)
| 260 | |
| 261 | |
| 262 | def 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 | |
| 271 | def test_whoami_legacy_otoat(tmp_path: Path, monkeypatch: object) -> None: |
nothing calls this directly
no test coverage detected