mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Use canary fixture for options flow test (#41817)
This commit is contained in:
parent
3013f39191
commit
b9d34603e4
@ -103,11 +103,9 @@ async def test_user_form_single_instance_allowed(hass, canary_config_flow):
|
|||||||
assert result["reason"] == "single_instance_allowed"
|
assert result["reason"] == "single_instance_allowed"
|
||||||
|
|
||||||
|
|
||||||
async def test_options_flow(hass):
|
async def test_options_flow(hass, canary):
|
||||||
"""Test updating options."""
|
"""Test updating options."""
|
||||||
with patch("homeassistant.components.canary.PLATFORMS", []), patch(
|
with patch("homeassistant.components.canary.PLATFORMS", []):
|
||||||
"homeassistant.components.canary.Api"
|
|
||||||
):
|
|
||||||
entry = await init_integration(hass)
|
entry = await init_integration(hass)
|
||||||
|
|
||||||
assert entry.options[CONF_FFMPEG_ARGUMENTS] == DEFAULT_FFMPEG_ARGUMENTS
|
assert entry.options[CONF_FFMPEG_ARGUMENTS] == DEFAULT_FFMPEG_ARGUMENTS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user