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
[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}

View File

@ -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",

View File

@ -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("/")