mirror of
https://github.com/home-assistant/core.git
synced 2025-10-22 10:09:33 +00:00
Get Litter-Robot to 100% code coverage and minor code cleanup (#58704)
This commit is contained in:
@@ -59,6 +59,12 @@ def mock_account_with_no_robots() -> MagicMock:
|
||||
return create_mock_account(skip_robots=True)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_account_with_sleeping_robot() -> MagicMock:
|
||||
"""Mock a Litter-Robot account with a sleeping robot."""
|
||||
return create_mock_account({"sleepModeActive": "102:00:00"})
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_account_with_error() -> MagicMock:
|
||||
"""Mock a Litter-Robot account with error."""
|
||||
|
Reference in New Issue
Block a user