Files
hermes-agent/tests/hermes_cli/test_status.py
kshitij b9ff134f73 feat: add Tavily setup support (#1113)
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
2026-03-17 02:57:18 -07:00

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