test(qq): check SDK availability at the runtime module
This commit is contained in:
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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user