2026-06-05 19:38:32 -05:00
|
|
|
"""Tests for gateway /version command."""
|
|
|
|
|
|
|
|
|
|
import asyncio
|
|
|
|
|
|
2026-06-05 19:39:58 -05:00
|
|
|
from hermes_cli.banner import format_banner_version_label
|
2026-06-05 19:38:32 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_gateway_version_command_returns_release_line():
|
|
|
|
|
from gateway.run import GatewayRunner
|
|
|
|
|
|
|
|
|
|
result = asyncio.run(GatewayRunner._handle_version_command(None, None)) # type: ignore[arg-type]
|
2026-06-05 19:39:58 -05:00
|
|
|
assert result == format_banner_version_label()
|