test(health): key guardrails on test_model turns are an enterprise path, run that unit test as a premium user

This commit is contained in:
Devin AI 2026-11-05 00:37:02 +00:00
parent 198a5c925b
commit f703af6621

View file

@ -6355,7 +6355,10 @@ async def test_test_model_turns_pick_up_the_keys_guardrails_and_the_pinned_team_
hooks=hooks,
)
with pytest.raises(HTTPException, match="stopped before the provider"):
with (
patch("litellm.proxy.proxy_server.premium_user", True),
pytest.raises(HTTPException, match="stopped before the provider"),
):
await call(CHAT_COMPLETIONS_SCRIPT, CHAT_COMPLETIONS.turn_1, "turn-a")
assert hooks.guardrails == (["key-prompt-guard", "pii-mask"],)