1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-28 04:33:49 +01:00

Restructure and setup dedicated coordinator for Azure DevOps (#119199)

This commit is contained in:
Aidan Timson
2024-06-11 17:08:58 +01:00
committed by GitHub
parent a0abd537c6
commit c907912dd1
7 changed files with 208 additions and 95 deletions

View File

@@ -48,7 +48,22 @@ async def test_auth_failed(
assert mock_config_entry.state is ConfigEntryState.SETUP_ERROR
async def test_update_failed(
async def test_update_failed_project(
hass: HomeAssistant,
mock_config_entry: MockConfigEntry,
mock_devops_client: MagicMock,
) -> None:
"""Test a failed update entry."""
mock_devops_client.get_project.side_effect = aiohttp.ClientError
await setup_integration(hass, mock_config_entry)
assert mock_devops_client.get_project.call_count == 1
assert mock_config_entry.state is ConfigEntryState.SETUP_ERROR
async def test_update_failed_builds(
hass: HomeAssistant,
mock_config_entry: MockConfigEntry,
mock_devops_client: MagicMock,