From 573f59349f2396cb9f9681f48bb254fa65b71f7b Mon Sep 17 00:00:00 2001 From: vikynoah Date: Wed, 8 Jan 2025 19:37:10 +0100 Subject: [PATCH] fix: changes to post method in testing_async (#28) --- creyPY/fastapi/testing_async.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(