From 50f2c0989ae0c1c4c708de0f1637ba22c05efac7 Mon Sep 17 00:00:00 2001 From: moe-berri Date: Tue, 10 Nov 2026 13:52:02 +0800 Subject: [PATCH] test: ignore Ollama metadata calls in decisions decoy check (#50827) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/integration/providers/test_decisions_wire.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/integration/providers/test_decisions_wire.py b/tests/integration/providers/test_decisions_wire.py index bb4973d6f2f..7381965f377 100644 --- a/tests/integration/providers/test_decisions_wire.py +++ b/tests/integration/providers/test_decisions_wire.py @@ -582,7 +582,16 @@ def test_ollama_decisions_sdk_respects_environment_and_explicit_auth( authorization, {"model": provider.body_model, "state": _STATE, "questions": _QUESTIONS}, ) - assert _upstream_calls(gateway, unused) == [] + unused_calls: Final = _upstream_calls(gateway, unused) + assert tuple( + request + for request in unused_calls + if not ( + request["method"] == "POST" + and request["path"] == f"/{unused.scenario_id}/api/show" + and request["body"] == {"name": provider.body_model} + ) + ) == (), unused_calls def test_test_connection_evaluation_mode_uses_typesafe_decisions_path(gateway: Gateway) -> None: