Skip to content

"Vibe-Trading: Your Personal Trading Agent"

test(channels): stub slack_sdk before importing the adapter in the connection test

shadowinlife7c86313489e0
diff --git a/agent/tests/test_slack_connection_test.py b/agent/tests/test_slack_connection_test.py
index 02f742e4c..2d7f0f472 100644
--- a/agent/tests/test_slack_connection_test.py
+++ b/agent/tests/test_slack_connection_test.py
@@ -22,8 +22,12 @@ from typing import Any
import httpx
import pytest
-from src.channels.bus.queue import MessageBus
-from src.channels.slack import SlackChannel
+from tests.slack_stubs import install_slack_stubs
+
+install_slack_stubs()
+
+from src.channels.bus.queue import MessageBus # noqa: E402
+from src.channels.slack import SlackChannel # noqa: E402
AUTH_TEST_URL = "https://slack.com/api/auth.test"
CONNECTIONS_OPEN_URL = "https://slack.com/api/apps.connections.open"