mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-26 00:28:13 +00:00
fix: Reorganize imports to match Ruff's requirements
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
import importlib.util
|
import importlib.util
|
||||||
import pytest
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
def test_httpx_litellm_compatibility():
|
def test_httpx_litellm_compatibility():
|
||||||
"""Test that litellm is compatible with the latest httpx"""
|
"""Test that litellm is compatible with the latest httpx"""
|
||||||
@@ -36,9 +37,9 @@ def test_google_genai_compatibility():
|
|||||||
if importlib.util.find_spec("google.generativeai") is None:
|
if importlib.util.find_spec("google.generativeai") is None:
|
||||||
pytest.skip("google-genai not installed")
|
pytest.skip("google-genai not installed")
|
||||||
|
|
||||||
from google import generativeai
|
|
||||||
import httpx
|
import httpx
|
||||||
import litellm
|
import litellm
|
||||||
|
from google import generativeai
|
||||||
|
|
||||||
assert hasattr(generativeai, "version")
|
assert hasattr(generativeai, "version")
|
||||||
assert hasattr(httpx, "__version__")
|
assert hasattr(httpx, "__version__")
|
||||||
|
|||||||
Reference in New Issue
Block a user