Verified Commit 4e061846 authored by Kevin Morris's avatar Kevin Morris
Browse files

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

Signed-off-by: Kevin Morris's avatarKevin Morris <>
parent b3853e01
Pipeline #28783 passed with stages
in 2 minutes and 7 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment