mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Cleanup snapshot call in tests (#142750)
This commit is contained in:
parent
0e4f44b775
commit
5816a24577
@ -42,7 +42,7 @@ async def test_all_entities(
|
||||
await snapshot_platform(
|
||||
hass,
|
||||
entity_registry,
|
||||
snapshot(),
|
||||
snapshot,
|
||||
mock_serial_bridge_config_entry.entry_id,
|
||||
)
|
||||
|
||||
|
@ -42,7 +42,7 @@ async def test_all_entities(
|
||||
await snapshot_platform(
|
||||
hass,
|
||||
entity_registry,
|
||||
snapshot(),
|
||||
snapshot,
|
||||
mock_serial_bridge_config_entry.entry_id,
|
||||
)
|
||||
|
||||
|
@ -36,7 +36,7 @@ async def test_all_entities(
|
||||
await snapshot_platform(
|
||||
hass,
|
||||
entity_registry,
|
||||
snapshot(),
|
||||
snapshot,
|
||||
mock_serial_bridge_config_entry.entry_id,
|
||||
)
|
||||
|
||||
|
@ -33,7 +33,7 @@ async def test_all_entities(
|
||||
await snapshot_platform(
|
||||
hass,
|
||||
entity_registry,
|
||||
snapshot(),
|
||||
snapshot,
|
||||
mock_vedo_config_entry.entry_id,
|
||||
)
|
||||
|
||||
|
@ -36,7 +36,7 @@ async def test_all_entities(
|
||||
await snapshot_platform(
|
||||
hass,
|
||||
entity_registry,
|
||||
snapshot(),
|
||||
snapshot,
|
||||
mock_serial_bridge_config_entry.entry_id,
|
||||
)
|
||||
|
||||
|
@ -126,7 +126,7 @@ async def test_calls_not_allowed(
|
||||
await done.wait()
|
||||
|
||||
assert sum(played_audio_bytes) > 0
|
||||
assert played_audio_bytes == snapshot()
|
||||
assert played_audio_bytes == snapshot
|
||||
|
||||
|
||||
async def test_pipeline_not_found(
|
||||
@ -846,7 +846,7 @@ async def test_pipeline_error(
|
||||
await done.wait()
|
||||
|
||||
assert sum(played_audio_bytes) > 0
|
||||
assert played_audio_bytes == snapshot()
|
||||
assert played_audio_bytes == snapshot
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("socket_enabled")
|
||||
|
@ -192,7 +192,7 @@ async def test_connection_lost(
|
||||
assert result.response.response_type == intent.IntentResponseType.ERROR
|
||||
assert result.response.error_code == intent.IntentResponseErrorCode.UNKNOWN
|
||||
assert result.response.speech, "No speech"
|
||||
assert result.response.speech.get("plain", {}).get("speech") == snapshot()
|
||||
assert result.response.speech.get("plain", {}).get("speech") == snapshot
|
||||
|
||||
|
||||
async def test_oserror(
|
||||
@ -221,4 +221,4 @@ async def test_oserror(
|
||||
assert result.response.response_type == intent.IntentResponseType.ERROR
|
||||
assert result.response.error_code == intent.IntentResponseErrorCode.UNKNOWN
|
||||
assert result.response.speech, "No speech"
|
||||
assert result.response.speech.get("plain", {}).get("speech") == snapshot()
|
||||
assert result.response.speech.get("plain", {}).get("speech") == snapshot
|
||||
|
Loading…
x
Reference in New Issue
Block a user