The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(serve): the lifespan test imports the way ruff asks
alt-glitch0aa064cf66f8
diff --git a/tests/hermes_cli/test_web_server_boot_handshake.py b/tests/hermes_cli/test_web_server_boot_handshake.pyindex 03a023e0f8f..e58c64ac97d 100644--- a/tests/hermes_cli/test_web_server_boot_handshake.py+++ b/tests/hermes_cli/test_web_server_boot_handshake.py@@ -65,8 +65,7 @@ def test_lifespan_warmup_is_synchronous(monkeypatch):def test_lifespan_enters_and_exits_as_an_async_context_manager(monkeypatch):"""FastAPI gets ``_lifespan`` as an async context manager, never a bare async generator(Starlette's deprecated path), and entering it runs the desktop's first-install check."""- import hermes_cli.anon_auth as anon_auth- import hermes_cli.install_state as install_state+ from hermes_cli import anon_auth, install_stateprobed: list[bool] = []monkeypatch.setattr(web_server_mod, "_warm_gateway_module", lambda: None)