mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 18:57:57 +00:00
Remove unused test fixture from frontend tests (#102642)
This commit is contained in:
parent
b42c47e800
commit
421832e09c
@ -8,9 +8,6 @@ from unittest.mock import patch
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.frontend import (
|
||||
CONF_EXTRA_HTML_URL,
|
||||
CONF_EXTRA_HTML_URL_ES5,
|
||||
CONF_JS_VERSION,
|
||||
CONF_THEMES,
|
||||
DEFAULT_THEME_COLOR,
|
||||
DOMAIN,
|
||||
@ -106,23 +103,6 @@ async def ws_client(hass, hass_ws_client, frontend):
|
||||
return await hass_ws_client(hass)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def mock_http_client_with_urls(hass, aiohttp_client, ignore_frontend_deps):
|
||||
"""Start the Home Assistant HTTP component."""
|
||||
assert await async_setup_component(
|
||||
hass,
|
||||
"frontend",
|
||||
{
|
||||
DOMAIN: {
|
||||
CONF_JS_VERSION: "auto",
|
||||
CONF_EXTRA_HTML_URL: ["https://domain.com/my_extra_url.html"],
|
||||
CONF_EXTRA_HTML_URL_ES5: ["https://domain.com/my_extra_url_es5.html"],
|
||||
}
|
||||
},
|
||||
)
|
||||
return await aiohttp_client(hass.http.app)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_onboarded():
|
||||
"""Mock that we're onboarded."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user