mirror of
https://github.com/tiennm99/litellm.git
synced 2026-06-17 20:48:32 +00:00
test_package_dependencies
This commit is contained in:
@@ -38,10 +38,21 @@ def test_litellm_proxy_server():
|
||||
|
||||
|
||||
def test_package_dependencies():
|
||||
"""
|
||||
Test that all optional dependencies are correctly specified in extras.
|
||||
"""
|
||||
try:
|
||||
import tomli
|
||||
import pathlib
|
||||
import litellm
|
||||
|
||||
# Try to import tomllib (Python 3.11+) or tomli (older versions)
|
||||
try:
|
||||
import tomllib as tomli
|
||||
except ImportError:
|
||||
try:
|
||||
import tomli
|
||||
except ImportError:
|
||||
pytest.skip("tomli/tomllib not available - skipping dependency check")
|
||||
|
||||
# Get the litellm package root path
|
||||
litellm_path = pathlib.Path(litellm.__file__).parent.parent
|
||||
|
||||
Reference in New Issue
Block a user