Skip to content

Commit

Permalink
refactor(genai): rollback accidental changes
Browse files Browse the repository at this point in the history
  • Loading branch information
msampathkumar committed Feb 14, 2025
1 parent 5c0abdd commit d85f2bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genai/express_mode/test_express_mode_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ def test_api_key_example(mock_genai_client: MagicMock) -> None:
},
kwargs={},
)
mock_genai_client.return_value.models.count_tokens_example.return_value = mock_response
mock_genai_client.return_value.models.generate_content.return_value = mock_response

response = api_key_example.generate_content()

mock_genai_client.assert_called_once_with(vertexai=True, api_key="YOUR_API_KEY")
mock_genai_client.return_value.models.count_tokens_example.assert_called_once_with(
mock_genai_client.return_value.models.generate_content.assert_called_once_with(
model="gemini-2.0-flash-001",
contents="Explain bubble sort to me.",
)
Expand Down

0 comments on commit d85f2bd

Please sign in to comment.