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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user