honcho/honcho-cli/tests
Aakash Kattelu f506713f5a fix(cli): stop deleting shared apiKey on device login; bind oauth grant to its host
apiKey is shared with sibling tools that read it from the same config
file, so device login must not remove it. Precedence flips to a live
OAuth token over apiKey; a dead grant now degrades to the saved key
with a warning instead of aborting. The oauth block records the host
it was minted against and is ignored (no use, no refresh) when
base_url points elsewhere, so a staging grant is never sent to prod.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 11:57:46 -07:00
..
__init__.py feat: adding honcho-cli package (#424) 2026-04-20 13:27:35 -04:00
conftest.py feat(cli): add device code oauth login for honcho servers 2026-07-08 14:39:21 -07:00
test_commands.py feat: adding honcho-cli package (#424) 2026-04-20 13:27:35 -04:00
test_common.py fix(cli): stop deleting shared apiKey on device login; bind oauth grant to its host 2026-07-17 11:57:46 -07:00
test_config.py fix(cli): stop deleting shared apiKey on device login; bind oauth grant to its host 2026-07-17 11:57:46 -07:00
test_oauth.py refactor(cli): address review nits on device-auth PR 2026-07-16 12:13:17 -07:00
test_validation.py feat: adding honcho-cli package (#424) 2026-04-20 13:27:35 -04:00