1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Use hass_client_no_auth test fixture in integrations a-g (#55581)

This commit is contained in:
Erik Montnemery
2021-09-02 14:49:20 +02:00
committed by GitHub
parent 69aba2a6a1
commit d5b6dc4f26
7 changed files with 18 additions and 16 deletions

View File

@@ -382,11 +382,13 @@ def _listen_count(hass):
return sum(hass.bus.async_listeners().values())
async def test_api_error_log(hass, aiohttp_client, hass_access_token, hass_admin_user):
async def test_api_error_log(
hass, hass_client_no_auth, hass_access_token, hass_admin_user
):
"""Test if we can fetch the error log."""
hass.data[DATA_LOGGING] = "/some/path"
await async_setup_component(hass, "api", {})
client = await aiohttp_client(hass.http.app)
client = await hass_client_no_auth()
resp = await client.get(const.URL_API_ERROR_LOG)
# Verify auth required