mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
replace pspec with spec
This commit is contained in:
parent
57f25c309a
commit
4cc665f6ee
@ -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}
|
||||
|
4
setup.py
4
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",
|
||||
|
@ -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("/")
|
||||
|
Loading…
Reference in New Issue
Block a user