mirror of
https://github.com/home-assistant/core.git
synced 2026-05-04 03:51:12 +02:00
Break long strings in entity platform/component tests (#152320)
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user