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