Skip to content

Commit 39e94b3

Browse files
committed
refactor: Add missing newline in GoogleGenAIChatGenerator and improve test formatting
1 parent ae86ea8 commit 39e94b3

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

integrations/google_genai/src/haystack_integrations/components/generators/google_genai/chat/chat_generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def weather_function(city: str):
151151
response = chat_generator.run(messages=[chat_message])
152152
```
153153
"""
154+
154155
SUPPORTED_MODELS: ClassVar[list[str]] = [
155156
"gemini-2.5-pro",
156157
"gemini-2.5-flash",

integrations/google_genai/tests/test_chat_generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ def tools():
4747
)
4848
]
4949

50+
5051
def test_supported_models_is_non_empty_list_of_strings():
5152
assert isinstance(GoogleGenAIChatGenerator.SUPPORTED_MODELS, list)
5253
assert GoogleGenAIChatGenerator.SUPPORTED_MODELS
5354
assert all(isinstance(model, str) and model for model in GoogleGenAIChatGenerator.SUPPORTED_MODELS)
5455

56+
5557
class TestGoogleGenAIChatGeneratorInitSerDe:
5658
def test_init_default(self, monkeypatch):
5759
monkeypatch.setenv("GOOGLE_API_KEY", "test-api-key")

0 commit comments

Comments
 (0)