core/tests/components/conversation/snapshots/test_init.ambr

486 lines
9.8 KiB
Plaintext
Raw Normal View History

# serializer version: 1
# name: test_get_agent_info
dict({
'id': 'homeassistant',
'name': 'Home Assistant',
})
# ---
# name: test_get_agent_info.1
dict({
'id': 'mock-entry',
'name': 'Mock Title',
})
# ---
# name: test_get_agent_info.2
dict({
'id': 'homeassistant',
'name': 'Home Assistant',
})
# ---
# name: test_get_agent_info.3
dict({
'id': 'mock-entry',
'name': 'test',
})
# ---
# name: test_get_agent_list
dict({
'agents': list([
dict({
'id': 'homeassistant',
'name': 'Home Assistant',
'supported_languages': list([
2023-08-03 00:01:30 +00:00
'af',
'ar',
'bg',
'bn',
'ca',
'cs',
'da',
'de',
'de-CH',
'el',
'en',
'es',
'et',
'eu',
'fa',
'fi',
'fr',
'fr-CA',
'gl',
'gu',
'he',
'hi',
'hr',
'hu',
'id',
'is',
'it',
'ka',
'kn',
2023-05-30 20:11:08 +00:00
'ko',
'lb',
'lt',
'lv',
'ml',
'mn',
'ms',
'nb',
'nl',
'pl',
'pt',
'pt-br',
'ro',
'ru',
'sk',
'sl',
'sr',
'sv',
'sw',
'te',
'tr',
'uk',
'ur',
'vi',
'zh-cn',
'zh-hk',
'zh-tw',
]),
}),
dict({
'id': 'mock-entry',
'name': 'Mock Title',
'supported_languages': list([
'smurfish',
]),
}),
dict({
'id': 'mock-entry-support-all',
'name': 'Mock Title',
'supported_languages': '*',
}),
]),
})
# ---
# name: test_get_agent_list.1
dict({
'agents': list([
dict({
'id': 'homeassistant',
'name': 'Home Assistant',
'supported_languages': list([
]),
}),
dict({
'id': 'mock-entry',
'name': 'Mock Title',
'supported_languages': list([
'smurfish',
]),
}),
dict({
'id': 'mock-entry-support-all',
'name': 'Mock Title',
'supported_languages': '*',
}),
]),
})
# ---
# name: test_get_agent_list.2
dict({
'agents': list([
dict({
'id': 'homeassistant',
'name': 'Home Assistant',
'supported_languages': list([
'en',
]),
}),
dict({
'id': 'mock-entry',
'name': 'Mock Title',
'supported_languages': list([
]),
}),
dict({
'id': 'mock-entry-support-all',
'name': 'Mock Title',
'supported_languages': '*',
}),
]),
})
# ---
# name: test_get_agent_list.3
dict({
'agents': list([
dict({
'id': 'homeassistant',
'name': 'Home Assistant',
'supported_languages': list([
'en',
]),
}),
dict({
'id': 'mock-entry',
'name': 'Mock Title',
'supported_languages': list([
]),
}),
dict({
'id': 'mock-entry-support-all',
'name': 'Mock Title',
'supported_languages': '*',
}),
]),
})
# ---
# name: test_get_agent_list.4
dict({
'agents': list([
dict({
'id': 'homeassistant',
'name': 'Home Assistant',
'supported_languages': list([
'de',
'de-CH',
]),
}),
dict({
'id': 'mock-entry',
'name': 'Mock Title',
'supported_languages': list([
]),
}),
dict({
'id': 'mock-entry-support-all',
'name': 'Mock Title',
'supported_languages': '*',
}),
]),
})
# ---
# name: test_get_agent_list.5
dict({
'agents': list([
dict({
'id': 'homeassistant',
'name': 'Home Assistant',
'supported_languages': list([
'de-CH',
'de',
]),
}),
dict({
'id': 'mock-entry',
'name': 'Mock Title',
'supported_languages': list([
]),
}),
dict({
'id': 'mock-entry-support-all',
'name': 'Mock Title',
'supported_languages': '*',
}),
]),
})
# ---
# name: test_turn_on_intent[turn kitchen on-None]
dict({
'conversation_id': None,
'response': dict({
'card': dict({
}),
'data': dict({
'failed': list([
]),
'success': list([
dict({
'id': 'light.kitchen',
'name': 'kitchen',
'type': <IntentResponseTargetType.ENTITY: 'entity'>,
}),
]),
'targets': list([
]),
}),
'language': 'en',
'response_type': 'action_done',
'speech': dict({
'plain': dict({
'extra_data': None,
'speech': 'Turned on light',
}),
}),
}),
})
# ---
# name: test_turn_on_intent[turn kitchen on-homeassistant]
dict({
'conversation_id': None,
'response': dict({
'card': dict({
}),
'data': dict({
'failed': list([
]),
'success': list([
dict({
'id': 'light.kitchen',
'name': 'kitchen',
'type': <IntentResponseTargetType.ENTITY: 'entity'>,
}),
]),
'targets': list([
]),
}),
'language': 'en',
'response_type': 'action_done',
'speech': dict({
'plain': dict({
'extra_data': None,
'speech': 'Turned on light',
}),
}),
}),
})
# ---
# name: test_turn_on_intent[turn on kitchen-None]
dict({
'conversation_id': None,
'response': dict({
'card': dict({
}),
'data': dict({
'failed': list([
]),
'success': list([
dict({
'id': 'light.kitchen',
'name': 'kitchen',
'type': <IntentResponseTargetType.ENTITY: 'entity'>,
}),
]),
'targets': list([
]),
}),
'language': 'en',
'response_type': 'action_done',
'speech': dict({
'plain': dict({
'extra_data': None,
'speech': 'Turned on light',
}),
}),
}),
})
# ---
# name: test_turn_on_intent[turn on kitchen-homeassistant]
dict({
'conversation_id': None,
'response': dict({
'card': dict({
}),
'data': dict({
'failed': list([
]),
'success': list([
dict({
'id': 'light.kitchen',
'name': 'kitchen',
'type': <IntentResponseTargetType.ENTITY: 'entity'>,
}),
]),
'targets': list([
]),
}),
'language': 'en',
'response_type': 'action_done',
'speech': dict({
'plain': dict({
'extra_data': None,
'speech': 'Turned on light',
}),
}),
}),
})
# ---
# name: test_ws_get_agent_info
dict({
'attribution': None,
})
# ---
# name: test_ws_get_agent_info.1
dict({
'attribution': None,
})
# ---
# name: test_ws_get_agent_info.2
dict({
'attribution': dict({
'name': 'Mock assistant',
'url': 'https://assist.me',
}),
})
# ---
# name: test_ws_get_agent_info.3
dict({
'code': 'invalid_format',
'message': "invalid agent ID for dictionary value @ data['agent_id']. Got 'not_exist'",
})
# ---
# name: test_ws_hass_agent_debug
dict({
'results': list([
dict({
'details': dict({
'name': dict({
'name': 'name',
'text': 'my cool light',
'value': 'my cool light',
}),
}),
'intent': dict({
'name': 'HassTurnOn',
}),
'slots': dict({
'name': 'my cool light',
}),
'targets': dict({
'light.kitchen': dict({
'matched': True,
}),
}),
}),
dict({
'details': dict({
'name': dict({
'name': 'name',
'text': 'my cool light',
'value': 'my cool light',
}),
}),
'intent': dict({
'name': 'HassTurnOff',
}),
'slots': dict({
'name': 'my cool light',
}),
'targets': dict({
'light.kitchen': dict({
'matched': True,
}),
}),
}),
dict({
'details': dict({
'area': dict({
'name': 'area',
'text': 'kitchen',
'value': 'kitchen',
}),
'domain': dict({
'name': 'domain',
'text': '',
'value': 'light',
}),
}),
'intent': dict({
'name': 'HassTurnOn',
}),
'slots': dict({
'area': 'kitchen',
'domain': 'light',
}),
'targets': dict({
'light.kitchen': dict({
'matched': True,
}),
}),
}),
dict({
'details': dict({
'area': dict({
'name': 'area',
'text': 'kitchen',
'value': 'kitchen',
}),
'domain': dict({
'name': 'domain',
'text': 'lights',
'value': 'light',
}),
'state': dict({
'name': 'state',
'text': 'on',
'value': 'on',
}),
}),
'intent': dict({
'name': 'HassGetState',
}),
'slots': dict({
'area': 'kitchen',
'domain': 'light',
'state': 'on',
}),
'targets': dict({
'light.kitchen': dict({
'matched': False,
}),
}),
}),
None,
]),
})
# ---
# name: test_ws_hass_agent_debug.1
dict({
'name': dict({
'name': 'name',
'text': 'my cool light',
'value': 'my cool light',
}),
})
# ---