mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Add snapshot
This commit is contained in:
parent
bac63f7cdb
commit
08bb3a6aac
196
tests/components/wyoming/snapshots/test_websocket.ambr
Normal file
196
tests/components/wyoming/snapshots/test_websocket.ambr
Normal file
@ -0,0 +1,196 @@
|
||||
# serializer version: 1
|
||||
# name: test_info
|
||||
dict({
|
||||
'01JNP8HAYHF6G5V0QJX6HBC94T': dict({
|
||||
'asr': list([
|
||||
dict({
|
||||
'attribution': dict({
|
||||
'name': 'Test',
|
||||
'url': 'http://www.test.com',
|
||||
}),
|
||||
'description': 'Test ASR',
|
||||
'installed': True,
|
||||
'models': list([
|
||||
dict({
|
||||
'attribution': dict({
|
||||
'name': 'Test',
|
||||
'url': 'http://www.test.com',
|
||||
}),
|
||||
'description': 'Test Model',
|
||||
'installed': True,
|
||||
'languages': list([
|
||||
'en-US',
|
||||
]),
|
||||
'name': 'Test Model',
|
||||
'version': None,
|
||||
}),
|
||||
]),
|
||||
'name': 'Test ASR',
|
||||
'version': None,
|
||||
}),
|
||||
]),
|
||||
'handle': list([
|
||||
]),
|
||||
'intent': list([
|
||||
]),
|
||||
'tts': list([
|
||||
]),
|
||||
'wake': list([
|
||||
]),
|
||||
}),
|
||||
'01JNP8HB1MMF0HE8M42C8K8XEH': dict({
|
||||
'asr': list([
|
||||
]),
|
||||
'handle': list([
|
||||
]),
|
||||
'intent': list([
|
||||
]),
|
||||
'tts': list([
|
||||
dict({
|
||||
'attribution': dict({
|
||||
'name': 'Test',
|
||||
'url': 'http://www.test.com',
|
||||
}),
|
||||
'description': 'Test TTS',
|
||||
'installed': True,
|
||||
'name': 'Test TTS',
|
||||
'version': None,
|
||||
'voices': list([
|
||||
dict({
|
||||
'attribution': dict({
|
||||
'name': 'Test',
|
||||
'url': 'http://www.test.com',
|
||||
}),
|
||||
'description': 'Test Voice',
|
||||
'installed': True,
|
||||
'languages': list([
|
||||
'en-US',
|
||||
]),
|
||||
'name': 'Test Voice',
|
||||
'speakers': list([
|
||||
dict({
|
||||
'name': 'Test Speaker',
|
||||
}),
|
||||
]),
|
||||
'version': None,
|
||||
}),
|
||||
]),
|
||||
}),
|
||||
]),
|
||||
'wake': list([
|
||||
]),
|
||||
}),
|
||||
'01JNP8HB1SJFFVX809QVAEQQPK': dict({
|
||||
'asr': list([
|
||||
]),
|
||||
'handle': list([
|
||||
]),
|
||||
'intent': list([
|
||||
]),
|
||||
'tts': list([
|
||||
]),
|
||||
'wake': list([
|
||||
dict({
|
||||
'attribution': dict({
|
||||
'name': 'Test',
|
||||
'url': 'http://www.test.com',
|
||||
}),
|
||||
'description': 'Test Wake Word',
|
||||
'installed': True,
|
||||
'models': list([
|
||||
dict({
|
||||
'attribution': dict({
|
||||
'name': 'Test',
|
||||
'url': 'http://www.test.com',
|
||||
}),
|
||||
'description': 'Test Model',
|
||||
'installed': True,
|
||||
'languages': list([
|
||||
'en-US',
|
||||
]),
|
||||
'name': 'Test Model',
|
||||
'phrase': 'Test Phrase',
|
||||
'version': None,
|
||||
}),
|
||||
]),
|
||||
'name': 'Test Wake Word',
|
||||
'version': None,
|
||||
}),
|
||||
]),
|
||||
}),
|
||||
'01JNP8HB1XY1S5BP3E01BSHN1V': dict({
|
||||
'asr': list([
|
||||
]),
|
||||
'handle': list([
|
||||
]),
|
||||
'intent': list([
|
||||
dict({
|
||||
'attribution': dict({
|
||||
'name': 'Test',
|
||||
'url': 'http://www.test.com',
|
||||
}),
|
||||
'description': 'Test Intent',
|
||||
'installed': True,
|
||||
'models': list([
|
||||
dict({
|
||||
'attribution': dict({
|
||||
'name': 'Test',
|
||||
'url': 'http://www.test.com',
|
||||
}),
|
||||
'description': 'Test Model',
|
||||
'installed': True,
|
||||
'languages': list([
|
||||
'en-US',
|
||||
]),
|
||||
'name': 'Test Model',
|
||||
'version': None,
|
||||
}),
|
||||
]),
|
||||
'name': 'Test Intent',
|
||||
'version': None,
|
||||
}),
|
||||
]),
|
||||
'tts': list([
|
||||
]),
|
||||
'wake': list([
|
||||
]),
|
||||
}),
|
||||
'01JNP8HB233HE975X9972MJN1G': dict({
|
||||
'asr': list([
|
||||
]),
|
||||
'handle': list([
|
||||
dict({
|
||||
'attribution': dict({
|
||||
'name': 'Test',
|
||||
'url': 'http://www.test.com',
|
||||
}),
|
||||
'description': 'Test Handle',
|
||||
'installed': True,
|
||||
'models': list([
|
||||
dict({
|
||||
'attribution': dict({
|
||||
'name': 'Test',
|
||||
'url': 'http://www.test.com',
|
||||
}),
|
||||
'description': 'Test Model',
|
||||
'installed': True,
|
||||
'languages': list([
|
||||
'en-US',
|
||||
]),
|
||||
'name': 'Test Model',
|
||||
'version': None,
|
||||
}),
|
||||
]),
|
||||
'name': 'Test Handle',
|
||||
'version': None,
|
||||
}),
|
||||
]),
|
||||
'intent': list([
|
||||
]),
|
||||
'tts': list([
|
||||
]),
|
||||
'wake': list([
|
||||
]),
|
||||
}),
|
||||
})
|
||||
# ---
|
@ -29,6 +29,7 @@ async def test_info(
|
||||
assert msg["success"]
|
||||
|
||||
info = msg.get("result", {}).get("info", {})
|
||||
assert info == snapshot
|
||||
|
||||
# stt (speech-to-text) = asr (automated speech recognition)
|
||||
assert init_wyoming_stt.entry_id in info
|
||||
|
Loading…
x
Reference in New Issue
Block a user