Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
test(matrix): skip cleanly when optional deps are missing
haosenwang10187a6416bcb21a
diff --git a/tests/channels/test_matrix_channel.py b/tests/channels/test_matrix_channel.pyindex 18a8e1097..27b7e1255 100644--- a/tests/channels/test_matrix_channel.py+++ b/tests/channels/test_matrix_channel.py@@ -3,16 +3,14 @@ from pathlib import Pathfrom types import SimpleNamespaceimport pytest++pytest.importorskip("nio")+pytest.importorskip("nh3")+pytest.importorskip("mistune")from nio import RoomSendResponsefrom nanobot.channels.matrix import _build_matrix_text_content-# Check optional matrix dependencies before importing-try:- import nh3 # noqa: F401-except ImportError:- pytest.skip("Matrix dependencies not installed (nh3)", allow_module_level=True)-import nanobot.channels.matrix as matrix_modulefrom nanobot.bus.events import OutboundMessagefrom nanobot.bus.queue import MessageBus