mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Remove unnecessary patch from panel_custom tests (#146695)
This commit is contained in:
parent
7201171eb5
commit
6421973cd6
@ -1,7 +1,5 @@
|
|||||||
"""The tests for the panel_custom component."""
|
"""The tests for the panel_custom component."""
|
||||||
|
|
||||||
from unittest.mock import Mock, patch
|
|
||||||
|
|
||||||
from homeassistant import setup
|
from homeassistant import setup
|
||||||
from homeassistant.components import frontend, panel_custom
|
from homeassistant.components import frontend, panel_custom
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@ -22,14 +20,13 @@ async def test_webcomponent_custom_path_not_found(hass: HomeAssistant) -> None:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
with patch("os.path.isfile", Mock(return_value=False)):
|
result = await setup.async_setup_component(hass, "panel_custom", config)
|
||||||
result = await setup.async_setup_component(hass, "panel_custom", config)
|
assert not result
|
||||||
assert not result
|
|
||||||
|
|
||||||
panels = hass.data.get(frontend.DATA_PANELS, [])
|
panels = hass.data.get(frontend.DATA_PANELS, [])
|
||||||
|
|
||||||
assert panels
|
assert panels
|
||||||
assert "nice_url" not in panels
|
assert "nice_url" not in panels
|
||||||
|
|
||||||
|
|
||||||
async def test_js_webcomponent(hass: HomeAssistant) -> None:
|
async def test_js_webcomponent(hass: HomeAssistant) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user