Use canary fixture for options flow test (#41817)

pull/41826/head
Chris Talkington 2020-10-14 01:17:36 -05:00 committed by GitHub
parent 3013f39191
commit b9d34603e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -103,11 +103,9 @@ async def test_user_form_single_instance_allowed(hass, canary_config_flow):
assert result["reason"] == "single_instance_allowed"
async def test_options_flow(hass):
async def test_options_flow(hass, canary):
"""Test updating options."""
with patch("homeassistant.components.canary.PLATFORMS", []), patch(
"homeassistant.components.canary.Api"
):
with patch("homeassistant.components.canary.PLATFORMS", []):
entry = await init_integration(hass)
assert entry.options[CONF_FFMPEG_ARGUMENTS] == DEFAULT_FFMPEG_ARGUMENTS