1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 05:57:01 +00:00

Use current request context in OAuth redirect (#38692)

This commit is contained in:
Franck Nijhof
2020-08-15 15:26:54 +02:00
committed by GitHub
parent a1dfa8ebc6
commit 755761867d
10 changed files with 40 additions and 17 deletions

View File

@@ -40,7 +40,7 @@ async def test_zeroconf_abort_if_existing_entry(hass):
assert result["reason"] == "already_configured"
async def test_full_flow(hass, aiohttp_client, aioclient_mock):
async def test_full_flow(hass, aiohttp_client, aioclient_mock, current_request):
"""Check a full flow."""
assert await setup.async_setup_component(
hass,
@@ -96,7 +96,9 @@ async def test_full_flow(hass, aiohttp_client, aioclient_mock):
}
async def test_abort_if_spotify_error(hass, aiohttp_client, aioclient_mock):
async def test_abort_if_spotify_error(
hass, aiohttp_client, aioclient_mock, current_request
):
"""Check Spotify errors causes flow to abort."""
await setup.async_setup_component(
hass,