From 68fb1ef08044ccc9a7b42e747e8557d5a4e7b203 Mon Sep 17 00:00:00 2001 From: Stacy Olivas Date: Thu, 9 Apr 2026 21:57:46 -0700 Subject: [PATCH] fix: stub is_radio_zombie in flood scope test mock The send_channel_message test was leaving bot.is_radio_zombie as an unset MagicMock attribute, which evaluates truthy and triggers the zombie-state early return before flood scope logic runs. Add bot.is_radio_zombie = False to the mock setup so the function reaches the set_flood_scope call as intended. --- tests/integration/test_flood_scope_reply.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/test_flood_scope_reply.py b/tests/integration/test_flood_scope_reply.py index 1d197b0..6425b7c 100644 --- a/tests/integration/test_flood_scope_reply.py +++ b/tests/integration/test_flood_scope_reply.py @@ -299,6 +299,7 @@ async def test_send_channel_message_normalizes_bare_scope(): bot.config = make_config() bot.connected = True bot.meshcore = MagicMock() + bot.is_radio_zombie = False bot.channel_manager = MagicMock() bot.channel_manager.get_channel_number = Mock(return_value=0)