From 31e39dec84cbce925fb99cef9dccb739e2f92474 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Thu, 9 Jul 2026 01:30:19 +0530 Subject: [PATCH] test: expect compact_rows in the read-only status-count fake Rebase reconciliation with #60884: _count_status_active_sessions (from #58238) now passes compact_rows=True (this branch's #47437 projection), so the fake asserts both. --- tests/hermes_cli/test_web_server.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/hermes_cli/test_web_server.py b/tests/hermes_cli/test_web_server.py index 77086732e44..519ccf1518e 100644 --- a/tests/hermes_cli/test_web_server.py +++ b/tests/hermes_cli/test_web_server.py @@ -283,8 +283,9 @@ class TestWebServerEndpoints: def __init__(self, *args, **kwargs): captured["read_only"] = kwargs.get("read_only") - def list_sessions_rich(self, limit): + def list_sessions_rich(self, limit, compact_rows=False): captured["limit"] = limit + captured["compact_rows"] = compact_rows return [ {"ended_at": None, "last_active": 95}, {"ended_at": 99, "last_active": 99}, @@ -298,7 +299,9 @@ class TestWebServerEndpoints: monkeypatch.setattr(web_server.time, "time", lambda: 100) assert web_server._count_status_active_sessions() == 1 - assert captured == {"read_only": True, "limit": 50, "closed": True} + assert captured == { + "read_only": True, "limit": 50, "compact_rows": True, "closed": True + } def test_status_active_session_count_fresh_install_returns_zero(self, monkeypatch, tmp_path): """No state.db yet (fresh install): return 0 without attempting a