Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 19, 2023
1 parent 97bce2f commit 3e49728
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions integration_tests/base_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ def global_before_request(request: Request):

@app.after_request()
def global_after_request(response: Response):
response.headers["global_after"] = [ "global_after_request" ]
response.headers["global_after"] = ["global_after_request"]
return response


@app.get("/sync/global/middlewares")
def sync_global_middlewares(request: Request):
assert "global_before" in request.headers
assert request.headers["global_before"] == [ "global_before_request" ]
assert request.headers["global_before"] == ["global_before_request"]
return "sync global middlewares"


Expand Down Expand Up @@ -160,7 +160,7 @@ async def async_before_request(request: Request):

@app.after_request("/async/middlewares")
async def async_after_request(response: Response):
response.headers["after"] = [ "async_after_request" ]
response.headers["after"] = ["async_after_request"]
response.description = response.description + " after"
return response

Expand Down Expand Up @@ -271,7 +271,7 @@ def sync_response_get():

@app.get("/async/response")
async def async_response_get():
return Response(200, {"async": [ "response" ]}, "async response get")
return Response(200, {"async": ["response"]}, "async response get")


@app.get("/sync/response/const", const=True)
Expand Down Expand Up @@ -477,7 +477,7 @@ async def redirect():
"status_code": 307,
"description": "",
"type": "text",
"headers": {"Location": [ "redirect_route" ]},
"headers": {"Location": ["redirect_route"]},
}


Expand Down Expand Up @@ -507,7 +507,7 @@ def sync_dict_post():
"status_code": 200,
"description": "sync dict post",
"type": "text",
"headers": {"sync": [ "dict" ]},
"headers": {"sync": ["dict"]},
}


Expand All @@ -517,7 +517,7 @@ async def async_dict_post():
"status_code": 200,
"description": "async dict post",
"type": "text",
"headers": {"async": [ "dict" ]},
"headers": {"async": ["dict"]},
}


Expand Down Expand Up @@ -564,7 +564,7 @@ def sync_dict_put():
"status_code": 200,
"description": "sync dict put",
"type": "text",
"headers": {"sync": [ "dict" ]},
"headers": {"sync": ["dict"]},
}


Expand All @@ -574,7 +574,7 @@ async def async_dict_put():
"status_code": 200,
"description": "async dict put",
"type": "text",
"headers": {"async": [ "dict" ]},
"headers": {"async": ["dict"]},
}


Expand Down Expand Up @@ -640,7 +640,7 @@ def sync_dict_patch():
"status_code": 200,
"description": "sync dict patch",
"type": "text",
"headers": {"sync": [ "dict" ]},
"headers": {"sync": ["dict"]},
}


Expand Down

0 comments on commit 3e49728

Please sign in to comment.