test(gemini): stub API key for format param tests

This commit is contained in:
user
2026-04-15 00:28:39 +00:00
parent b1bc3c166d
commit 2911d99d77
+2
View File
@@ -213,6 +213,8 @@ async def test_url_with_format_param(model, sync_mode, monkeypatch):
}
],
}
if model.startswith("gemini/"):
args["api_key"] = "test-api-key"
with patch.object(client, "post", new=MagicMock()) as mock_client:
try:
if sync_mode: