diff --git a/setup.cfg b/setup.cfg index bb4e55dd..5148328a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,5 +2,6 @@ test = 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 +spec_test_format = {result} {docstring_summary} diff --git a/setup.py b/setup.py index 137cc605..19f931aa 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ setup( "pytest-cov", "pytest-helpers-namespace", "pytest-mock", - "pytest-pspec", + "pytest-spec", "pytest-resource-path", ], @@ -102,8 +102,8 @@ setup( "pytest-cov", "pytest-helpers-namespace", "pytest-mock", - "pytest-pspec", "pytest-resource-path", + "pytest-spec", ], "web": [ "Jinja2", diff --git a/src/ahriman/web/views/user/logout.py b/src/ahriman/web/views/user/logout.py index d107a8c0..6b7cc5cf 100644 --- a/src/ahriman/web/views/user/logout.py +++ b/src/ahriman/web/views/user/logout.py @@ -38,8 +38,6 @@ class LogoutView(BaseView): :return: redirect to main page """ await check_authorized(self.request) + await forget(self.request, HTTPFound("/")) - response = HTTPFound("/") - await forget(self.request, response) - - return response + raise HTTPFound("/")