From 2164e548b1834adfccf42bd2d729976578990794 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Wed, 29 Jul 2026 10:38:18 -0700 Subject: [PATCH] test: retarget nemo-relay telemetry stub at read_raw_config_readonly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same sibling-mock class as the relay-metrics runtime file — this test stubs the telemetry gate's config read, which now goes through read_raw_config_readonly(). Swept the whole test tree for remaining read_raw_config stubs: all others target consumers that still use the mutable reader (browser config, url_safety, inventory) and carry no telemetry keys. --- tests/plugins/test_nemo_relay_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/plugins/test_nemo_relay_plugin.py b/tests/plugins/test_nemo_relay_plugin.py index 6081f0660f7..9b37e1216f0 100644 --- a/tests/plugins/test_nemo_relay_plugin.py +++ b/tests/plugins/test_nemo_relay_plugin.py @@ -381,7 +381,7 @@ def test_shared_metrics_and_rich_plugin_share_one_core_session( "HERMES_NEMO_RELAY_ATIF_OUTPUT_DIRECTORY", str(tmp_path / "atif") ) monkeypatch.setattr( - "hermes_cli.config.read_raw_config", + "hermes_cli.config.read_raw_config_readonly", lambda: {"telemetry": {"shared_metrics": {"enabled": True}}}, ) plugin = _fresh_plugin(monkeypatch, fake)