mirror of
https://github.com/home-assistant/core.git
synced 2025-12-26 14:08:21 +00:00
Replace assert_lists_same with pytest_unordered in integrations a-f (#94900)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""The tests for Cover device actions."""
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
import homeassistant.components.automation as automation
|
||||
from homeassistant.components.cover import DOMAIN, CoverEntityFeature
|
||||
@@ -12,7 +13,6 @@ from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
assert_lists_same,
|
||||
async_get_device_automation_capabilities,
|
||||
async_get_device_automations,
|
||||
async_mock_service,
|
||||
@@ -88,7 +88,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(
|
||||
@@ -137,7 +137,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_get_action_capabilities(
|
||||
|
||||
Reference in New Issue
Block a user