Replace assert_lists_same with pytest_unordered in integrations n-s (#94902)
This commit is contained in:
parent
6a29ed8caa
commit
eba04824a4
19 changed files with 58 additions and 57 deletions
|
@ -1,5 +1,6 @@
|
|||
"""The tests for Number device actions."""
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
import voluptuous_serialize
|
||||
|
||||
import homeassistant.components.automation as automation
|
||||
|
@ -17,7 +18,6 @@ from homeassistant.setup import async_setup_component
|
|||
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
assert_lists_same,
|
||||
async_get_device_automations,
|
||||
async_mock_service,
|
||||
)
|
||||
|
@ -56,7 +56,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(
|
||||
|
@ -104,7 +104,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_no_state(
|
||||
|
@ -134,7 +134,7 @@ async def test_get_action_no_state(
|
|||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue