Get Litter-Robot to 100% code coverage and minor code cleanup (#58704)

This commit is contained in:
Nathan Spencer
2021-10-30 08:13:03 -06:00
committed by GitHub
parent bbbbcfbb93
commit aacc009cbb
6 changed files with 35 additions and 18 deletions

View File

@@ -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."""