mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
test: ignore Ollama metadata calls in decisions decoy check (#50827)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
96b916028a
commit
50f2c0989a
1 changed files with 10 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue