fix: update opencode-go base_url + clean up test_issue1894 provider overlap tests#2975
Conversation
api.opencode.ai/v1 -> opencode.ai/zen/go/v1 (canonical per hermes_cli/auth.py)
…qa, add docstrings
SummaryFixture-only cleanup. The behavior under test ( Code referenceThe canonical URL is owned by the agent, not the WebUI. From the hermes-agent registry ( "opencode-go": ProviderConfig(
id="opencode-go",
...
inference_base_url="https://opencode.ai/zen/go/v1",
...
),The WebUI side ( Diagnosis / RecommendationThe diff is fine and the URL change matches The docstring conversion and Two small follow-ups worth considering (non-blocking):
Verification
|
a6c65de
Summary
Three commits cleaning up
tests/test_issue1894_provider_overlap.py:1. Canonicalize opencode-go base_url in tests
api.opencode.ai/go/v1→opencode.ai/zen/go/v1— the canonical URL perhermes_cli/auth.py:406. The upstream source code (api/config.py) already uses the correct URL; this synchronizes the test assertions to match.2. Remove vestigial
# noqa: N801+ add docstringsnoqa: N801suppression was leftover cruft with no purpose# commentsabove each of the 5 test functions into proper"""docstrings"""for discoverability viapytest --docand standard tooling# descriptionblock into a"""module docstring"""3. Consistent section separators
Remaining
# ---section separators that were left behind during the docstring conversion are now removed — all 4 test groups are uniformly formatted.Verification
pytest tests/test_issue1894_provider_overlap.py— all 5 passruff check— clean, no violationspython3 -m py_compile— syntax OK