From 74d4a26f9776cb218f3ff2d4c383fed51783dee2 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 10 Mar 2023 16:06:53 +0100 Subject: [PATCH] Add missing mock in jellyfin config flow tests (#89510) --- tests/components/jellyfin/test_config_flow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/components/jellyfin/test_config_flow.py b/tests/components/jellyfin/test_config_flow.py index 015d44722e0..51aa4bccc92 100644 --- a/tests/components/jellyfin/test_config_flow.py +++ b/tests/components/jellyfin/test_config_flow.py @@ -1,6 +1,8 @@ """Test the jellyfin config flow.""" from unittest.mock import MagicMock +import pytest + from homeassistant import config_entries, data_entry_flow from homeassistant.components.jellyfin.const import CONF_CLIENT_DEVICE_ID, DOMAIN from homeassistant.const import CONF_PASSWORD, CONF_URL, CONF_USERNAME @@ -11,6 +13,8 @@ from .const import TEST_PASSWORD, TEST_URL, TEST_USERNAME from tests.common import MockConfigEntry +pytestmark = pytest.mark.usefixtures("mock_setup_entry") + async def test_abort_if_existing_entry(hass: HomeAssistant) -> None: """Check flow abort when an entry already exist."""