The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(cli): ruff RUF059 in the lane SESSION tests
Teknium28f57e6b7a89
diff --git a/tests/hermes_cli/test_gateway_agent.py b/tests/hermes_cli/test_gateway_agent.pyindex bfb6b61b64e..86542fc1b02 100644--- a/tests/hermes_cli/test_gateway_agent.py+++ b/tests/hermes_cli/test_gateway_agent.py@@ -611,7 +611,7 @@ def test_verbose_mode_reaches_the_gateway_session(make_agent):def test_a_non_default_verbose_mode_is_sent_when_the_agent_is_built(make_agent):- agent, client = make_agent([], tool_progress_mode="new")+ _agent, client = make_agent([], tool_progress_mode="new")assert {"session_id": SID, "key": "verbose", "value": "new"} in [p for m, p in client.calls if m == "config.set"]diff --git a/tests/hermes_cli/test_gateway_session_store.py b/tests/hermes_cli/test_gateway_session_store.pyindex 2be11e8af24..7ebfa806b95 100644--- a/tests/hermes_cli/test_gateway_session_store.py+++ b/tests/hermes_cli/test_gateway_session_store.py@@ -272,7 +272,7 @@ def test_new_session_id_is_a_fresh_gateway_session(store, monkeypatch):db.open_session(cli("local-old", resumed=True))sid = CLIInitMixin._new_session_id(host, None)assert sid == "local-new" and host.session_id == "local-new"- method, params = [c for c in client.calls if c[0] == "session.create"][-1]+ _method, params = [c for c in client.calls if c[0] == "session.create"][-1]assert "model" not in params and params["toolsets"] == ["file"]@@ -337,7 +337,7 @@ def test_create_if_missing_titles_a_gateway_created_session(store, monkeypatch):from hermes_cli import gateway_session_store as gssmonkeypatch.setattr(gss, "session_store", lambda: db)assert gss.create_titled_session("Fresh Named") == "local-new"- method, params = [c for c in client.calls if c[0] == "session.create"][-1]+ _method, params = [c for c in client.calls if c[0] == "session.create"][-1]assert params["title"] == "Fresh Named" and params["source"] and params["cwd"]