mirror of https://github.com/home-assistant/core
29 lines
703 B
Python
29 lines
703 B
Python
"""Utilities for Risco tests."""
|
|
|
|
from unittest.mock import AsyncMock, MagicMock
|
|
|
|
TEST_SITE_UUID = "test-site-uuid"
|
|
TEST_SITE_NAME = "test-site-name"
|
|
|
|
|
|
def zone_mock():
|
|
"""Return a mocked zone."""
|
|
return MagicMock(
|
|
triggered=False, bypassed=False, bypass=AsyncMock(return_value=True)
|
|
)
|
|
|
|
|
|
def system_mock():
|
|
"""Return a mocked system."""
|
|
return MagicMock(
|
|
low_battery_trouble=False,
|
|
ac_trouble=False,
|
|
monitoring_station_1_trouble=False,
|
|
monitoring_station_2_trouble=False,
|
|
monitoring_station_3_trouble=False,
|
|
phone_line_trouble=False,
|
|
clock_trouble=False,
|
|
box_tamper=False,
|
|
programming_mode=False,
|
|
)
|