Skip to content

The agent that grows with you

test(telegram): give the topic-mode fixture adapter its own config

Teknium1578e7dbba1f
diff --git a/tests/gateway/test_telegram_topic_mode.py b/tests/gateway/test_telegram_topic_mode.py
index fbd108dfbe8..28a607df481 100644
--- a/tests/gateway/test_telegram_topic_mode.py
+++ b/tests/gateway/test_telegram_topic_mode.py
@@ -69,6 +69,7 @@ def _make_runner(session_db=None):
platforms={Platform.TELEGRAM: PlatformConfig(enabled=True, token="***")}
)
adapter = MagicMock()
+ adapter.config = runner.config.platforms[Platform.TELEGRAM] # the receiving bot's own extra
adapter.send = AsyncMock()
adapter.send_image_file = AsyncMock()
adapter._bot = None