[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2021-06-01 17:56:33 +00:00 committed by Phil Jones
parent 270eb2df2a
commit 5205cd4ea9

View file

@ -31,11 +31,11 @@ class AsyncView(View):
class AsyncMethodView(MethodView):
async def get(self):
await asyncio.sleep(0)
return 'GET'
return "GET"
async def post(self):
await asyncio.sleep(0)
return 'POST'
return "POST"
@pytest.fixture(name="async_app")
@ -73,8 +73,8 @@ def _async_app():
app.register_blueprint(blueprint, url_prefix="/bp")
app.add_url_rule('/view', view_func=AsyncView.as_view('view'))
app.add_url_rule('/methodview', view_func=AsyncMethodView.as_view('methodview'))
app.add_url_rule("/view", view_func=AsyncView.as_view("view"))
app.add_url_rule("/methodview", view_func=AsyncMethodView.as_view("methodview"))
return app