1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 05:57:01 +00:00

Remove assert_lists_same test helper (#94904)

This commit is contained in:
Erik Montnemery
2023-06-21 12:10:28 +02:00
committed by GitHub
parent 05039036f1
commit 732ce34a66
4 changed files with 7 additions and 20 deletions

View File

@@ -1,5 +1,6 @@
"""The tests for NEW_NAME device actions."""
import pytest
from pytest_unordered import unordered
from homeassistant.components import automation
from homeassistant.components.device_automation import DeviceAutomationType
@@ -11,7 +12,6 @@ from homeassistant.setup import async_setup_component
from tests.common import (
MockConfigEntry,
assert_lists_same,
async_get_device_automations,
async_mock_service,
)
@@ -44,7 +44,7 @@ async def test_get_actions(
actions = await async_get_device_automations(
hass, DeviceAutomationType.ACTION, device_entry.id
)
assert_lists_same(actions, expected_actions)
assert actions == unordered(expected_actions)
@pytest.mark.parametrize(
@@ -91,7 +91,7 @@ async def test_get_actions_hidden_auxiliary(
actions = await async_get_device_automations(
hass, DeviceAutomationType.ACTION, device_entry.id
)
assert_lists_same(actions, expected_actions)
assert actions == unordered(expected_actions)
async def test_action(hass: HomeAssistant) -> None: