Move socket_enabled fixture to decorator (#118847)

This commit is contained in:
epenet 2024-06-06 17:27:38 +02:00 committed by GitHub
parent 6de26ca811
commit fb51163075
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 11 additions and 12 deletions

View file

@ -320,10 +320,10 @@ async def test_api_ingress_panels(
("update_diagnostics", "POST", True),
],
)
@pytest.mark.usefixtures("socket_enabled")
async def test_api_headers(
aiohttp_raw_server, # 'aiohttp_raw_server' must be before 'hass'!
hass: HomeAssistant,
socket_enabled: None,
api_call: str,
method: Literal["GET", "POST"],
payload: Any,