Replace assert_lists_same with pytest_unordered in integrations h-m (#94901)
This commit is contained in:
parent
c4d7695173
commit
fd822bce56
18 changed files with 61 additions and 59 deletions
|
@ -2,6 +2,7 @@
|
|||
from datetime import timedelta
|
||||
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
import homeassistant.components.automation as automation
|
||||
from homeassistant.components.device_automation import DeviceAutomationType
|
||||
|
@ -15,7 +16,6 @@ import homeassistant.util.dt as dt_util
|
|||
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
assert_lists_same,
|
||||
async_fire_time_changed,
|
||||
async_get_device_automation_capabilities,
|
||||
async_get_device_automations,
|
||||
|
@ -63,7 +63,7 @@ async def test_get_triggers(
|
|||
triggers = await async_get_device_automations(
|
||||
hass, DeviceAutomationType.TRIGGER, device_entry.id
|
||||
)
|
||||
assert_lists_same(triggers, expected_triggers)
|
||||
assert triggers == unordered(expected_triggers)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
@ -111,7 +111,7 @@ async def test_get_triggers_hidden_auxiliary(
|
|||
triggers = await async_get_device_automations(
|
||||
hass, DeviceAutomationType.TRIGGER, device_entry.id
|
||||
)
|
||||
assert_lists_same(triggers, expected_triggers)
|
||||
assert triggers == unordered(expected_triggers)
|
||||
|
||||
|
||||
async def test_get_trigger_capabilities(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue