1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-02 08:26:41 +01:00

Adjust name and docstring of some trigger tests (#165846)

This commit is contained in:
Erik Montnemery
2026-03-17 22:11:32 +01:00
committed by GitHub
parent 738d4f662a
commit 6992a3c72b
3 changed files with 6 additions and 6 deletions

View File

@@ -127,7 +127,7 @@ async def test_button_triggers_gated_by_labs_flag(
),
],
)
async def test_button_state_trigger_behavior_any(
async def test_button_state_trigger(
hass: HomeAssistant,
service_calls: list[ServiceCall],
target_buttons: dict[str, list[str]],
@@ -137,7 +137,7 @@ async def test_button_state_trigger_behavior_any(
trigger: str,
states: list[TriggerStateDescription],
) -> None:
"""Test that the button state trigger fires when any button state changes to a specific state."""
"""Test that the button state trigger fires when targeted button state changes."""
other_entity_ids = set(target_buttons["included"]) - {entity_id}
# Set all buttons, including the tested button, to the initial state

View File

@@ -127,7 +127,7 @@ async def test_scene_triggers_gated_by_labs_flag(
),
],
)
async def test_scene_state_trigger_behavior_any(
async def test_scene_state_trigger(
hass: HomeAssistant,
service_calls: list[ServiceCall],
target_scenes: dict[str, list[str]],
@@ -137,7 +137,7 @@ async def test_scene_state_trigger_behavior_any(
trigger: str,
states: list[TriggerStateDescription],
) -> None:
"""Test that the scene state trigger fires when any scene state changes to a specific state."""
"""Test that the scene state trigger fires when targeted scene state changes."""
other_entity_ids = set(target_scenes["included"]) - {entity_id}
# Set all scenes, including the tested scene, to the initial state

View File

@@ -88,7 +88,7 @@ async def test_text_triggers_gated_by_labs_flag(
),
],
)
async def test_text_state_trigger_behavior_any(
async def test_text_state_trigger(
hass: HomeAssistant,
service_calls: list[ServiceCall],
target_texts: dict[str, list[str]],
@@ -98,7 +98,7 @@ async def test_text_state_trigger_behavior_any(
trigger: str,
states: list[TriggerStateDescription],
) -> None:
"""Test that the text state trigger fires when any text state changes to a specific state."""
"""Test that the text state trigger fires when targeted text state changes."""
other_entity_ids = set(target_texts["included"]) - {entity_id}
# Set all texts, including the tested text, to the initial state