mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Fix test_pass_through_request_logging_failure
This commit is contained in:
parent
ade9603a63
commit
fa6f30bdbc
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ def mock_request():
|
|||
self.request_body = request_body or {}
|
||||
# Add url attribute that the actual code expects
|
||||
self.url = "http://localhost:8000/test"
|
||||
# Add state attribute that FastAPI requests have
|
||||
self.state = type("State", (), {})()
|
||||
|
||||
async def body(self) -> bytes:
|
||||
return bytes(json.dumps(self.request_body), "utf-8")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue