Add missing mock in jellyfin config flow tests (#89510)

This commit is contained in:
epenet 2023-03-10 16:06:53 +01:00 committed by GitHub
parent f22fabdd7f
commit 74d4a26f97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."""