Skip to content

Commit 64c8e15

Browse files
test(adk): update tests for save_input_blobs_as_artifacts=False
- test_default_run_config_returns_valid_config: expect False instead of True now that we preserve inline data for multimodal support - test_from_app_with_unsupported_mime_type: allow RUN_ERROR since the invalid mime type blob now reaches the API instead of being stored as an artifact Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c579e1c commit 64c8e15

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

integrations/adk-middleware/python/tests/test_context_handling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def test_default_run_config_returns_valid_config(self, adk_agent):
373373

374374
assert run_config is not None
375375
assert run_config.streaming_mode == StreamingMode.SSE
376-
assert run_config.save_input_blobs_as_artifacts is True
376+
assert run_config.save_input_blobs_as_artifacts is False
377377

378378

379379
class TestVersionDetection:

integrations/adk-middleware/python/tests/test_from_app_integration.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,12 @@ async def test_from_app_with_unsupported_mime_type(sample_app):
260260
events.append(event)
261261
event_types = [e.type for e in events]
262262

263-
# Google API gracefully ignores unsupported MIME types and processes the text portion normally
263+
# With save_input_blobs_as_artifacts=False, the invalid MIME type blob
264+
# reaches the Gemini API directly. The API may reject it with an error
265+
# or gracefully ignore it — either outcome is acceptable as long as the
266+
# run completes (RUN_FINISHED is emitted).
264267
assert EventType.RUN_STARTED in event_types
265268
assert EventType.RUN_FINISHED in event_types
266-
assert EventType.RUN_ERROR not in event_types
267269

268270
@pytest.mark.asyncio
269271
async def test_runner_supports_plugin_close_timeout():

0 commit comments

Comments
 (0)