Skip to content

Commit

Permalink
fix: changes to post method in testing_async
Browse files Browse the repository at this point in the history
  • Loading branch information
vikynoah committed Jan 8, 2025
1 parent b86b58f commit ec8b77c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion creyPY/fastapi/testing_async.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json

from httpx import AsyncClient


Expand Down Expand Up @@ -33,7 +34,8 @@ async def post(
)
if re.status_code != r_code:
print(re.content)
assert r_code == re.status_code
if not raw_response:
assert r_code == re.status_code
return re.json() if not raw_response else re

async def post_file(
Expand Down

0 comments on commit ec8b77c

Please sign in to comment.