supervisor/tests/api/test_supervisor.py
Pascal Vizeli c3019bce7e
Add Core Update API (#3413)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-01-24 10:32:23 +01:00

16 lines
403 B
Python

"""Test Supervisor API."""
# pylint: disable=protected-access
import pytest
from supervisor.coresys import CoreSys
@pytest.mark.asyncio
async def test_api_supervisor_options_debug(api_client, coresys: CoreSys):
"""Test security options force security."""
assert not coresys.config.debug
await api_client.post("/supervisor/options", json={"debug": True})
assert coresys.config.debug