@@ -24,7 +24,8 @@ def test_client_initialization():
2424 assert client .base_url == "http://test-api"
2525 assert "Authorization" not in client .session .headers
2626
27- client_with_token = InferenceGatewayClient ("http://test-api" , token = "test-token" )
27+ client_with_token = InferenceGatewayClient (
28+ "http://test-api" , token = "test-token" )
2829 assert "Authorization" in client_with_token .session .headers
2930 assert client_with_token .session .headers ["Authorization" ] == "Bearer test-token"
3031
@@ -42,7 +43,8 @@ def test_list_models(mock_get, client, mock_response):
4243@patch ("requests.Session.post" )
4344def test_generate_content (mock_post , client , mock_response ):
4445 """Test content generation"""
45- messages = [Message (Role .SYSTEM , "You are a helpful assistant" ), Message (Role .USER , "Hello!" )]
46+ messages = [Message (Role .SYSTEM , "You are a helpful assistant" ), Message (
47+ Role .USER , "Hello!" )]
4648
4749 mock_post .return_value = mock_response
4850 response = client .generate_content (Provider .OPENAI , "gpt-4" , messages )
@@ -86,7 +88,6 @@ def test_provider_enum():
8688 assert Provider .OPENAI == "openai"
8789 assert Provider .OLLAMA == "ollama"
8890 assert Provider .GROQ == "groq"
89- assert Provider .GOOGLE == "google"
9091 assert Provider .CLOUDFLARE == "cloudflare"
9192 assert Provider .COHERE == "cohere"
9293
0 commit comments