Add return type hints in tests (k-z) (#118942)

This commit is contained in:
epenet
2024-06-06 10:11:29 +02:00
committed by GitHub
parent b5b7c9bcd5
commit c7cc465e5c
26 changed files with 79 additions and 76 deletions

View File

@@ -131,7 +131,7 @@ async def test_commands(
matrix_bot: MatrixBot,
command_events: list[Event],
command_params: CommandTestParameters,
):
) -> None:
"""Test that the configured commands are used correctly."""
room = MatrixRoom(room_id=command_params.room_id, own_user_id=matrix_bot._mx_id)
@@ -160,7 +160,7 @@ async def test_non_commands(
matrix_bot: MatrixBot,
command_events: list[Event],
command_params: CommandTestParameters,
):
) -> None:
"""Test that normal/non-qualifying messages don't wrongly trigger commands."""
room = MatrixRoom(room_id=command_params.room_id, own_user_id=matrix_bot._mx_id)
@@ -173,7 +173,7 @@ async def test_non_commands(
assert len(command_events) == 0
async def test_commands_parsing(hass: HomeAssistant, matrix_bot: MatrixBot):
async def test_commands_parsing(hass: HomeAssistant, matrix_bot: MatrixBot) -> None:
"""Test that the configured commands were parsed correctly."""
await hass.async_start()