mirror of
https://github.com/Aider-AI/aider
synced 2026-04-25 17:15:07 +02:00
test: Fix PermissionDeniedError test with httpx objects
Co-authored-by: aider (gpt-5.2-codex) <aider@aider.chat>
This commit is contained in:
@@ -45,11 +45,12 @@ def test_get_ex_info():
|
||||
def test_permission_denied_error():
|
||||
"""Test specific handling of PermissionDeniedError"""
|
||||
ex = LiteLLMExceptions()
|
||||
from types import SimpleNamespace
|
||||
import httpx
|
||||
|
||||
from litellm import PermissionDeniedError
|
||||
|
||||
response = SimpleNamespace(status_code=403, text="")
|
||||
request = httpx.Request("GET", "https://example.com")
|
||||
response = httpx.Response(403, request=request)
|
||||
perm_error = PermissionDeniedError(
|
||||
message="Permission denied",
|
||||
llm_provider="openai",
|
||||
|
||||
Reference in New Issue
Block a user