mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Fix some tests
This commit is contained in:
parent
6fe2612f1d
commit
f9cecc0cd5
@ -46,9 +46,7 @@ def camera_only() -> Generator[None]:
|
||||
@pytest.fixture(name="mock_camera")
|
||||
async def mock_camera_fixture(hass: HomeAssistant) -> AsyncGenerator[None]:
|
||||
"""Initialize a demo camera platform."""
|
||||
assert await async_setup_component(
|
||||
hass, "camera", {camera.DOMAIN: {"platform": "demo"}}
|
||||
)
|
||||
assert await async_setup_component(hass, "demo", {"demo": {}})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
with patch(
|
||||
|
@ -52,9 +52,7 @@ from tests.typing import ClientSessionGenerator, WebSocketGenerator
|
||||
@pytest.fixture(name="image_mock_url")
|
||||
async def image_mock_url_fixture(hass: HomeAssistant) -> None:
|
||||
"""Fixture for get_image tests."""
|
||||
await async_setup_component(
|
||||
hass, camera.DOMAIN, {camera.DOMAIN: {"platform": "demo"}}
|
||||
)
|
||||
await async_setup_component(hass, "demo", {"demo": {}})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
|
20
tests/testing_config/known_devices.yaml
Normal file
20
tests/testing_config/known_devices.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
demo_paulus:
|
||||
name: Paulus
|
||||
mac:
|
||||
icon:
|
||||
picture:
|
||||
track: true
|
||||
|
||||
demo_anne_therese:
|
||||
name: Anne Therese
|
||||
mac:
|
||||
icon:
|
||||
picture:
|
||||
track: true
|
||||
|
||||
demo_home_boy:
|
||||
name: Home Boy
|
||||
mac:
|
||||
icon:
|
||||
picture:
|
||||
track: true
|
Loading…
x
Reference in New Issue
Block a user