Skip to content

Commit

Permalink
skip test if gemini deps are not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
luxzoli committed Oct 10, 2024
1 parent 8f9caf6 commit d1391e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/oai/test_gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ def test_create_function_call_response(mock_configure, mock_generative_model, mo
), "Response content should match expected output"


@pytest.mark.skipif(skip, reason="Google GenAI dependency is not installed")
@patch("autogen.oai.gemini.GenerativeModel")
@patch("autogen.oai.gemini.vertexai.init")
def test_vertexai_create_response(mock_init, mock_generative_model, gemini_client_with_credentials):
Expand Down

0 comments on commit d1391e4

Please sign in to comment.