test(auth): annotate the session-minting patch for the test-quality gate

This commit is contained in:
Oliver Jensen 2026-09-09 15:22:00 +02:00 committed by GitHub
parent ea99bd0585
commit 12e8a29e7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1004,7 +1004,7 @@ class TestPasswordResetRequiredSessionMinting:
async def _login(self, mock_prisma_client) -> tuple[LoginResult, dict]:
with patch.dict(os.environ, _DB_LOGIN_ENV):
with patch(
with patch( # test-quality-ok: asserting the minted key's restriction requires seeing its kwargs
"litellm.proxy.auth.login_utils.generate_key_helper_fn",
new_callable=AsyncMock,
return_value={"token": "session-token"},