fix(test): JSONResponse() requires a content argument with fastapi 0.83.0

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-09-11 18:40:31 -07:00
parent b3853e01b8
commit 4e0618469d
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -44,7 +44,7 @@ async def test_error_or_result():
assert data.get("error") == "No response returned."
async def good_route(request: fastapi.Request):
return JSONResponse()
return JSONResponse("{}")
response = await util.error_or_result(good_route, Request())
assert response.status_code == HTTPStatus.OK