10 lines
323 B
Python
10 lines
323 B
Python
import tomllib
|
|
from pathlib import Path
|
|
|
|
|
|
def test_runtime_dependencies_constrain_litellm_to_the_supported_major():
|
|
pyproject = Path(__file__).resolve().parents[1] / "pyproject.toml"
|
|
project = tomllib.loads(pyproject.read_text(encoding="utf-8"))["project"]
|
|
|
|
assert "litellm>=1.98,<2" in project["dependencies"]
|