Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
aurweb
Commits
4e061846
Verified
Commit
4e061846
authored
Sep 11, 2022
by
Kevin Morris
Browse files
fix(test): JSONResponse() requires a content argument with fastapi 0.83.0
Signed-off-by:
Kevin Morris
<
kevr@0cost.org
>
parent
b3853e01
Pipeline
#28783
passed with stages
in 2 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_util.py
View file @
4e061846
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment