Files
crewAI/tests/test_imports.py
Devin AI 6508d6db92 fix: update onnxruntime dependency to >=1.22.1 for Windows Server 2019 compatibility
- Update onnxruntime constraint from ==1.22.0 to >=1.22.1 in pyproject.toml
- Add test to verify onnxruntime version constraint in test_imports.py
- Add comprehensive tests for ONNX embedding functionality
- Fixes issue #3398 where onnxruntime 1.22.0 causes DLL load failures on Windows Server 2019

Resolves: #3398
Co-Authored-By: João <joao@crewai.com>
2025-08-25 21:48:19 +00:00

25 lines
681 B
Python

"""Test that all public API classes are properly importable."""
def test_task_output_import():
"""Test that TaskOutput can be imported from crewai."""
from crewai import TaskOutput
assert TaskOutput is not None
def test_crew_output_import():
"""Test that CrewOutput can be imported from crewai."""
from crewai import CrewOutput
assert CrewOutput is not None
def test_onnxruntime_import_and_version():
"""Test that onnxruntime can be imported and is version >= 1.22.1."""
import onnxruntime
from packaging import version
assert onnxruntime is not None
assert version.parse(onnxruntime.__version__) >= version.parse("1.22.1")