Use hass_client_no_auth test fixture in integrations s-x (#55585)
This commit is contained in:
parent
acdddabe1f
commit
bfd799dc04
13 changed files with 60 additions and 56 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue