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
|
@ -34,7 +34,7 @@ async def test_abort_if_existing_entry(hass):
|
|||
|
||||
|
||||
async def test_full_flow(
|
||||
hass, aiohttp_client, aioclient_mock, current_request_with_host
|
||||
hass, hass_client_no_auth, aioclient_mock, current_request_with_host
|
||||
):
|
||||
"""Check full flow."""
|
||||
assert await setup.async_setup_component(
|
||||
|
@ -67,7 +67,7 @@ async def test_full_flow(
|
|||
f"&state={state}"
|
||||
)
|
||||
|
||||
client = await aiohttp_client(hass.http.app)
|
||||
client = await hass_client_no_auth()
|
||||
resp = await client.get(f"/auth/external/callback?code=abcd&state={state}")
|
||||
assert resp.status == 200
|
||||
assert resp.headers["content-type"] == "text/html; charset=utf-8"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue