* Local config flow * Local entities * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Address code review comments * More type hints * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * More annotations * Even more annonations * New entity naming * Move fixtures to conftest * Improve state tests for local * Remove mutable default arguments * Remove assertions for lack of state * Add missing file * Switch setup to fixtures * Use error fixtures in test_config_flow * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
12 lines
305 B
Python
12 lines
305 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)
|
|
)
|