🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
chore: skip markitdown test if dependency not available (#3310)
Wendong-Fan54aa7a9aed79
diff --git a/test/loaders/test_markitdown.py b/test/loaders/test_markitdown.pyindex fe95dec39..9830323f5 100644--- a/test/loaders/test_markitdown.py+++ b/test/loaders/test_markitdown.py@@ -17,7 +17,21 @@ from unittest.mock import patchimport pytest-from camel.loaders import MarkItDownLoader+# Try importing markitdown, skip tests if not available+try:+ import markitdown # noqa: F401++ from camel.loaders import MarkItDownLoader++ markitdown_available = True+except ImportError:+ markitdown_available = False++# Skip all tests in this module if markitdown isn't available+pytestmark = pytest.mark.skipif(+ not markitdown_available,+ reason="markitdown is not installed (only available for Python >= 3.13)",+)@pytest.fixture