mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
Mock server_root_path for test
This commit is contained in:
parent
4d39a1a18f
commit
5afd03fef3
1 changed files with 1 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ def test_login_v2_returns_redirect_url_and_sets_cookie(monkeypatch):
|
|||
monkeypatch.setattr("litellm.proxy.proxy_server.general_settings", {})
|
||||
monkeypatch.setattr("litellm.proxy.proxy_server.premium_user", False)
|
||||
monkeypatch.setattr("litellm.proxy.proxy_server.prisma_client", mock_prisma_client)
|
||||
monkeypatch.setattr("litellm.proxy.utils.get_server_root_path", lambda: "")
|
||||
|
||||
client = TestClient(app)
|
||||
response = client.post(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue