Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

[Fix] CI: license check for black 26.3.1 + skip disk_cache test without diskcache

user6769c8b66fe5
diff --git a/tests/code_coverage_tests/liccheck.ini b/tests/code_coverage_tests/liccheck.ini
index 2100aa1377f..23e31f8886b 100644
--- a/tests/code_coverage_tests/liccheck.ini
+++ b/tests/code_coverage_tests/liccheck.ini
@@ -171,3 +171,4 @@ langgraph: >=1.0.10 # MIT License
langgraph-prebuilt: >=1.0.8 # MIT License - https://github.com/langchain-ai/langgraph/blob/main/LICENSE
pytest-rerunfailures: >=15.1 # MPL 2.0 license
pytest-recording: >=0.13.4 # MIT license
+black: >=24.10.0 # MIT License - https://github.com/psf/black/blob/main/LICENSE
diff --git a/tests/test_litellm/caching/test_disk_cache.py b/tests/test_litellm/caching/test_disk_cache.py
index d2b6fef5385..470e2064c38 100644
--- a/tests/test_litellm/caching/test_disk_cache.py
+++ b/tests/test_litellm/caching/test_disk_cache.py
@@ -4,6 +4,8 @@ import tempfile
import pytest
+pytest.importorskip("diskcache")
+
sys.path.insert(0, os.path.abspath("../../.."))
from litellm.caching.disk_cache import DiskCache