Break long strings in entity platform/component tests (#152320)

This commit is contained in:
G Johansson
2025-09-14 23:27:04 +02:00
committed by GitHub
parent 1483c9488f
commit 5ccbee4c9a
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -572,7 +572,10 @@ async def test_register_entity_service_non_entity_service_schema(
vol.Any(vol.Schema({"some": str})),
)
):
expected_message = f"The test_domain.hello_{idx} service registers an entity service with a non entity service schema"
expected_message = (
f"The test_domain.hello_{idx} service registers "
"an entity service with a non entity service schema"
)
with pytest.raises(HomeAssistantError, match=expected_message):
component.async_register_entity_service(f"hello_{idx}", schema, Mock())
+4 -1
View File
@@ -1892,7 +1892,10 @@ async def test_register_entity_service_non_entity_service_schema(
vol.Any(vol.Schema({"some": str})),
)
):
expected_message = f"The mock_platform.hello_{idx} service registers an entity service with a non entity service schema"
expected_message = (
f"The mock_platform.hello_{idx} service registers "
"an entity service with a non entity service schema"
)
with pytest.raises(HomeAssistantError, match=expected_message):
entity_platform.async_register_entity_service(
f"hello_{idx}", schema, Mock()