1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Remove cloud details from assist pipeline (#105687)

* Remove cloud details from assist pipeline

* Update assist pipeline tests

* Update cloud tests
This commit is contained in:
Martin Hjelmare
2023-12-14 10:15:59 +01:00
committed by GitHub
parent 82f0b28e89
commit 2e448d2d13
4 changed files with 44 additions and 66 deletions

View File

@@ -193,7 +193,12 @@ async def test_login_view_create_pipeline(
assert req.status == HTTPStatus.OK
result = await req.json()
assert result == {"success": True, "cloud_pipeline": "12345"}
create_pipeline_mock.assert_awaited_once_with(hass, "cloud", "cloud")
create_pipeline_mock.assert_awaited_once_with(
hass,
stt_engine_id="cloud",
tts_engine_id="cloud",
pipeline_name="Home Assistant Cloud",
)
async def test_login_view_create_pipeline_fail(
@@ -227,7 +232,12 @@ async def test_login_view_create_pipeline_fail(
assert req.status == HTTPStatus.OK
result = await req.json()
assert result == {"success": True, "cloud_pipeline": None}
create_pipeline_mock.assert_awaited_once_with(hass, "cloud", "cloud")
create_pipeline_mock.assert_awaited_once_with(
hass,
stt_engine_id="cloud",
tts_engine_id="cloud",
pipeline_name="Home Assistant Cloud",
)
async def test_login_view_random_exception(