replace pspec with spec

This commit is contained in:
Evgenii Alekseev 2022-03-20 03:08:51 +03:00
parent a7c6d95b34
commit 6ee1c8ef5a
3 changed files with 6 additions and 7 deletions

View File

@ -2,5 +2,6 @@
test = pytest test = pytest
[tool:pytest] [tool:pytest]
addopts = --cov=ahriman --cov-report term-missing:skip-covered --pspec addopts = --cov=ahriman --cov-report term-missing:skip-covered --spec
asyncio_mode = legacy asyncio_mode = legacy
spec_test_format = {result} {docstring_summary}

View File

@ -44,7 +44,7 @@ setup(
"pytest-cov", "pytest-cov",
"pytest-helpers-namespace", "pytest-helpers-namespace",
"pytest-mock", "pytest-mock",
"pytest-pspec", "pytest-spec",
"pytest-resource-path", "pytest-resource-path",
], ],
@ -102,8 +102,8 @@ setup(
"pytest-cov", "pytest-cov",
"pytest-helpers-namespace", "pytest-helpers-namespace",
"pytest-mock", "pytest-mock",
"pytest-pspec",
"pytest-resource-path", "pytest-resource-path",
"pytest-spec",
], ],
"web": [ "web": [
"Jinja2", "Jinja2",

View File

@ -38,8 +38,6 @@ class LogoutView(BaseView):
:return: redirect to main page :return: redirect to main page
""" """
await check_authorized(self.request) await check_authorized(self.request)
await forget(self.request, HTTPFound("/"))
response = HTTPFound("/") raise HTTPFound("/")
await forget(self.request, response)
return response