diff --git a/creyPY/fastapi/testing_async.py b/creyPY/fastapi/testing_async.py index b61a6fd..836e3f1 100644 --- a/creyPY/fastapi/testing_async.py +++ b/creyPY/fastapi/testing_async.py @@ -35,7 +35,8 @@ class AsyncGenericClient: ) 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(