Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy committed Nov 24, 2024
1 parent 8cff8ee commit 00e35f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_plugin_falcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Headers,
ListJSON,
OptionalAliasResp,
Order,
Query,
Resp,
RootResp,
Expand Down Expand Up @@ -122,7 +123,7 @@ def on_post(self, req, resp, name, query: Query, json: JSON, cookies: Cookies):
response_format = req.params.get("response_format")
assert response_format in ("json", "xml")
score = [randint(0, req.media.get("limit")) for _ in range(5)]
score.sort(reverse=int(req.params.get("order")))
score.sort(reverse=int(req.params.get("order")) == Order.desc)
assert req.cookies["pub"] == "abcdefg"
if response_format == "json":
resp.media = {"name": req.media.get("name"), "x_score": score}
Expand Down

0 comments on commit 00e35f1

Please sign in to comment.