mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
- 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>
25 lines
681 B
Python
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")
|