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

@ -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"