From fe2d847aca36f2c7c78a8180bbdcfcf6d8c164b4 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Thu, 16 Jul 2026 06:22:10 -0700 Subject: [PATCH] test: valid-shape Telegram token in port-binding guard fixture The #62803 branch predates PR #64636's Telegram token-shape validation on the messaging platform PUT endpoint; align the new guard test's fixture with the validated format. --- tests/hermes_cli/test_web_server_messaging_profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hermes_cli/test_web_server_messaging_profiles.py b/tests/hermes_cli/test_web_server_messaging_profiles.py index 9342ad4bee12..544208380571 100644 --- a/tests/hermes_cli/test_web_server_messaging_profiles.py +++ b/tests/hermes_cli/test_web_server_messaging_profiles.py @@ -367,7 +367,7 @@ class TestMultiplexPortBindingGuard: resp = client.put( "/api/messaging/platforms/telegram", params={"profile": "worker_alpha"}, - json={"enabled": True, "env": {"TELEGRAM_BOT_TOKEN": "worker-token"}}, + json={"enabled": True, "env": {"TELEGRAM_BOT_TOKEN": _VALID_WORKER_BOT_TOKEN}}, ) assert resp.status_code == 200 cfg = yaml.safe_load(