Skip to content

Your lightweight open-source personal agent.

test(qq): check SDK availability at the runtime module

KDB9d106bd44de0
diff --git a/nanobot/channels/qq/tests/test_qq_ack_message.py b/nanobot/channels/qq/tests/test_qq_ack_message.py
index cfda182b8..b698225b9 100644
--- a/nanobot/channels/qq/tests/test_qq_ack_message.py
+++ b/nanobot/channels/qq/tests/test_qq_ack_message.py
@@ -13,7 +13,7 @@ from types import SimpleNamespace
import pytest
try:
- from nanobot.channels import qq
+ from nanobot.channels.qq import runtime as qq
QQ_AVAILABLE = getattr(qq, "QQ_AVAILABLE", False)
except ImportError:
diff --git a/nanobot/channels/qq/tests/test_qq_channel.py b/nanobot/channels/qq/tests/test_qq_channel.py
index 625dfa867..de31d391f 100644
--- a/nanobot/channels/qq/tests/test_qq_channel.py
+++ b/nanobot/channels/qq/tests/test_qq_channel.py
@@ -7,7 +7,7 @@ import pytest
# Check optional QQ dependencies before running tests
try:
- from nanobot.channels import qq
+ from nanobot.channels.qq import runtime as qq
QQ_AVAILABLE = getattr(qq, "QQ_AVAILABLE", False)
except ImportError:
QQ_AVAILABLE = False
diff --git a/nanobot/channels/qq/tests/test_qq_media.py b/nanobot/channels/qq/tests/test_qq_media.py
index 57cfc752d..4082838fd 100644
--- a/nanobot/channels/qq/tests/test_qq_media.py
+++ b/nanobot/channels/qq/tests/test_qq_media.py
@@ -6,7 +6,7 @@ from unittest.mock import AsyncMock, patch
import pytest
try:
- from nanobot.channels import qq
+ from nanobot.channels.qq import runtime as qq
QQ_AVAILABLE = getattr(qq, "QQ_AVAILABLE", False)
except ImportError: