Skip to content

Commit

Permalink
test_team_access_groups
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Jan 13, 2025
1 parent 112295c commit 3fe1f3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/proxy_unit_tests/test_key_generate_prisma.py
Original file line number Diff line number Diff line change
Expand Up @@ -3099,7 +3099,6 @@ async def test_team_access_groups(prisma_client):
generated_key = key.key
bearer_token = "Bearer " + generated_key

request = Request(scope={"type": "http"})
request._url = URL(url="/chat/completions")

for model in ["gpt-4o", "gemini-pro-vision"]:
Expand All @@ -3109,6 +3108,8 @@ async def return_body():
# return string as bytes
return return_string.encode()

request = Request(scope={"type": "http"})
request._url = URL(url="/chat/completions")
request.body = return_body

# use generated key to auth in
Expand All @@ -3124,6 +3125,8 @@ async def return_body_2():
# return string as bytes
return return_string.encode()

request = Request(scope={"type": "http"})
request._url = URL(url="/chat/completions")
request.body = return_body_2

# use generated key to auth in
Expand Down

0 comments on commit 3fe1f3b

Please sign in to comment.