mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-01 16:31:56 +08:00
Register TAVILY_API_KEY across the configuration and setup flow: - OPTIONAL_ENV_VARS metadata (config.py) - ENV_VARS_BY_VERSION migration at version 10 - hermes config / hermes status display - hermes tools web provider selection - Setup summary - Config version bump 9 → 10 Cherry-picked from PR #1113 by kshitijk4poor. Fixed migration version (7 → 10) and resolved merge conflicts with current main. Closes #1069
15 lines
431 B
Python
15 lines
431 B
Python
from types import SimpleNamespace
|
|
|
|
from hermes_cli.status import show_status
|
|
|
|
|
|
def test_show_status_includes_tavily_key(monkeypatch, capsys, tmp_path):
|
|
monkeypatch.setenv("HERMES_HOME", str(tmp_path))
|
|
monkeypatch.setenv("TAVILY_API_KEY", "tvly-1234567890abcdef")
|
|
|
|
show_status(SimpleNamespace(all=False, deep=False))
|
|
|
|
output = capsys.readouterr().out
|
|
assert "Tavily" in output
|
|
assert "tvly...cdef" in output
|