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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user