google-gemini / generative-ai-python

The official Python library for the Google Gemini API
https://pypi.org/project/google-generativeai/
Apache License 2.0
1.62k stars 322 forks source link

Ensure tests are runnable when standalone #552

Closed markmcd closed 2 months ago

markmcd commented 2 months ago

When we run tests internally that don't invoke the test class, they pass but don't run the tests.

Our GitHub environment tests them fine but this change ensures they run in both environments.

I also removed unused imports in these files.