1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +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

@@ -34,7 +34,7 @@ async def calls(hass, fixture):
@pytest.fixture
async def fixture(hass, aiohttp_client):
async def fixture(hass, hass_client_no_auth):
"""Initialize a Home Assistant server for testing this module."""
await async_setup_component(hass, dialogflow.DOMAIN, {"dialogflow": {}})
await async_setup_component(
@@ -92,7 +92,7 @@ async def fixture(hass, aiohttp_client):
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
webhook_id = result["result"].data["webhook_id"]
return await aiohttp_client(hass.http.app), webhook_id
return await hass_client_no_auth(), webhook_id
class _Data: