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

This commit is contained in:
KDB authored and Xubin Ren committed 2026-09-15 13:49:49 +08:00
1 parent 9b50a02275
commit 9d106bd44d
3 files changed
+3 -3

No files matched your search

@@ -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:
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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: