mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
disable debugpanel for now
This commit is contained in:
parent
2cecbb3d53
commit
7458c73c7d
@ -160,13 +160,15 @@ def setup_service(architecture: str, configuration: Configuration, spawner: Spaw
|
|||||||
application.logger.info("setup process spawner")
|
application.logger.info("setup process spawner")
|
||||||
application["spawn"] = spawner
|
application["spawn"] = spawner
|
||||||
|
|
||||||
application.logger.info("setup debug panel")
|
# disable debug panel as it is not compatible with python 3.11 at the moment
|
||||||
debug_enabled = configuration.getboolean("web", "debug", fallback=False)
|
# https://github.com/aio-libs/aiohttp-debugtoolbar/issues/477
|
||||||
if debug_enabled:
|
# application.logger.info("setup debug panel")
|
||||||
import aiohttp_debugtoolbar # type: ignore[import]
|
# debug_enabled = configuration.getboolean("web", "debug", fallback=False)
|
||||||
aiohttp_debugtoolbar.setup(application,
|
# if debug_enabled:
|
||||||
hosts=configuration.getlist("web", "debug_allowed_hosts", fallback=[]),
|
# import aiohttp_debugtoolbar # type: ignore[import]
|
||||||
check_host=configuration.getboolean("web", "debug_check_host", fallback=False))
|
# aiohttp_debugtoolbar.setup(application,
|
||||||
|
# hosts=configuration.getlist("web", "debug_allowed_hosts", fallback=[]),
|
||||||
|
# check_host=configuration.getboolean("web", "debug_check_host", fallback=False))
|
||||||
|
|
||||||
application.logger.info("setup authorization")
|
application.logger.info("setup authorization")
|
||||||
validator = application["validator"] = Auth.load(configuration, database)
|
validator = application["validator"] = Auth.load(configuration, database)
|
||||||
|
@ -120,6 +120,7 @@ def test_run_with_auth(application_with_auth: Application, mocker: MockerFixture
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip(reason="https://github.com/aio-libs/aiohttp-debugtoolbar/issues/477")
|
||||||
def test_run_with_debug(application_with_debug: Application, mocker: MockerFixture) -> None:
|
def test_run_with_debug(application_with_debug: Application, mocker: MockerFixture) -> None:
|
||||||
"""
|
"""
|
||||||
must run application with enabled debug panel
|
must run application with enabled debug panel
|
||||||
|
Loading…
Reference in New Issue
Block a user