We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c971fbc commit 54aa7a9Copy full SHA for 54aa7a9
test/loaders/test_markitdown.py
@@ -17,7 +17,21 @@
17
18
import pytest
19
20
-from camel.loaders import MarkItDownLoader
+# Try importing markitdown, skip tests if not available
21
+try:
22
+ import markitdown # noqa: F401
23
+
24
+ from camel.loaders import MarkItDownLoader
25
26
+ markitdown_available = True
27
+except ImportError:
28
+ markitdown_available = False
29
30
+# Skip all tests in this module if markitdown isn't available
31
+pytestmark = pytest.mark.skipif(
32
+ not markitdown_available,
33
+ reason="markitdown is not installed (only available for Python >= 3.13)",
34
+)
35
36
37
@pytest.fixture
0 commit comments