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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user