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

@@ -118,7 +118,7 @@ def mock_dev_track(mock_device_tracker_conf):
@pytest.fixture
async def geofency_client(loop, hass, aiohttp_client):
async def geofency_client(loop, hass, hass_client_no_auth):
"""Geofency mock client (unauthenticated)."""
assert await async_setup_component(hass, "persistent_notification", {})
@@ -128,7 +128,7 @@ async def geofency_client(loop, hass, aiohttp_client):
await hass.async_block_till_done()
with patch("homeassistant.components.device_tracker.legacy.update_config"):
return await aiohttp_client(hass.http.app)
return await hass_client_no_auth()
@pytest.fixture(autouse=True)