Cleanup snapshot call in tests (#142750)

This commit is contained in:
Simone Chemelli 2025-04-11 17:21:12 +02:00 committed by GitHub
parent 0e4f44b775
commit 5816a24577
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 9 additions and 9 deletions

View File

@ -42,7 +42,7 @@ async def test_all_entities(
await snapshot_platform(
hass,
entity_registry,
snapshot(),
snapshot,
mock_serial_bridge_config_entry.entry_id,
)

View File

@ -42,7 +42,7 @@ async def test_all_entities(
await snapshot_platform(
hass,
entity_registry,
snapshot(),
snapshot,
mock_serial_bridge_config_entry.entry_id,
)

View File

@ -36,7 +36,7 @@ async def test_all_entities(
await snapshot_platform(
hass,
entity_registry,
snapshot(),
snapshot,
mock_serial_bridge_config_entry.entry_id,
)

View File

@ -33,7 +33,7 @@ async def test_all_entities(
await snapshot_platform(
hass,
entity_registry,
snapshot(),
snapshot,
mock_vedo_config_entry.entry_id,
)

View File

@ -36,7 +36,7 @@ async def test_all_entities(
await snapshot_platform(
hass,
entity_registry,
snapshot(),
snapshot,
mock_serial_bridge_config_entry.entry_id,
)

View File

@ -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")

View File

@ -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