diff --git a/creyPY/fastapi/testing_async.py b/creyPY/fastapi/testing_async.py index 91c835e..254e044 100644 --- a/creyPY/fastapi/testing_async.py +++ b/creyPY/fastapi/testing_async.py @@ -1,4 +1,5 @@ import json + from httpx import AsyncClient @@ -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(