From 9d106bd44de081b3bd79e6aa759868097a5ce643 Mon Sep 17 00:00:00 2001 From: KDB <937925477@qq.com> Date: Tue, 8 Sep 2026 08:56:02 +0800 Subject: [PATCH] test(qq): check SDK availability at the runtime module --- nanobot/channels/qq/tests/test_qq_ack_message.py | 2 +- nanobot/channels/qq/tests/test_qq_channel.py | 2 +- nanobot/channels/qq/tests/test_qq_media.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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: