fix: changes to post method in testing_async (#28)

This commit is contained in:
vikynoah
2025-01-08 19:37:10 +01:00
committed by GitHub
parent 32bf089456
commit 573f59349f

View File

@@ -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(