mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-25 01:02:15 +00:00
test(proxy): give the faked login user the breach-check columns
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
ec55ab1ddb
commit
2074273faf
1 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ Routes covered:
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import datetime, timezone
|
||||
from unittest.mock import AsyncMock, MagicMock
|
||||
|
||||
from .conftest import normalize
|
||||
|
|
@ -510,6 +511,8 @@ def _db_user(monkeypatch, email: str):
|
|||
user.user_email = email
|
||||
user.user_role = "internal_user"
|
||||
user.password = "scrypt:stored"
|
||||
user.password_reset_required = None
|
||||
user.last_breach_check_at = datetime.now(timezone.utc)
|
||||
repo = MagicMock()
|
||||
repo.return_value.table.find_first = AsyncMock(return_value=user)
|
||||
monkeypatch.setattr(ps, "prisma_client", MagicMock())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue