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.
This commit is contained in:
Stacy Olivas
2026-04-09 21:57:46 -07:00
committed by agessaman
parent a35aecd0d1
commit 68fb1ef080
@@ -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)