mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
b3853e01b8
commit
4e0618469d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue