Use hass_client_no_auth test fixture in integrations s-x (#55585)

This commit is contained in:
Erik Montnemery 2021-09-02 14:50:10 +02:00 committed by GitHub
parent acdddabe1f
commit bfd799dc04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 60 additions and 56 deletions

View file

@ -5,7 +5,7 @@ from homeassistant.config import async_process_ha_core_config
from homeassistant.core import callback
async def test_config_flow_registers_webhook(hass, aiohttp_client):
async def test_config_flow_registers_webhook(hass, hass_client_no_auth):
"""Test setting up Twilio and sending webhook."""
await async_process_ha_core_config(
hass,
@ -29,7 +29,7 @@ async def test_config_flow_registers_webhook(hass, aiohttp_client):
hass.bus.async_listen(twilio.RECEIVED_DATA, handle_event)
client = await aiohttp_client(hass.http.app)
client = await hass_client_no_auth()
await client.post(f"/api/webhook/{webhook_id}", data={"hello": "twilio"})
assert len(twilio_events) == 1