You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_turn_index_snapshot fails offline when GOOGLE_API_KEY is not set #31
Running tests/unit/agents/flash/test_turn_index_snapshot.py on an environment without GOOGLE_API_KEY fails 4 tests during _runner initialization:
$ uv run pytest tests/unit/agents/flash/test_turn_index_snapshot.pyE pydantic_core._pydantic_core.ValidationError: 1 validation error for ChatGoogleGenerativeAIE Value error, API key required for Gemini Developer API. Provide api_key parameter or set GOOGLE_API_KEY/GEMINI_API_KEY environment variable.
Cause
FlashRunner.__init__ instantiates VisualStepSummarizer, which attempts to construct ChatGoogleGenerativeAI without a mock. In _runner, runner.summarizer is immediately set to None, but VisualStepSummarizer is already invoked during FlashRunner(...) initialization.
Patching VisualStepSummarizer during _runner creation allows the suite to run offline and deterministically as intended.
Activity