Replace assert_lists_same with pytest_unordered in integrations t-z (#94903)
This commit is contained in:
parent
eba04824a4
commit
6183a36fce
12 changed files with 47 additions and 49 deletions
|
@ -1,5 +1,6 @@
|
|||
"""The tests for YoLink device triggers."""
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
from yolink.const import ATTR_DEVICE_DIMMER, ATTR_DEVICE_SMART_REMOTER
|
||||
|
||||
from homeassistant.components import automation
|
||||
|
@ -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,
|
||||
)
|
||||
|
@ -96,7 +96,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)
|
||||
|
||||
|
||||
async def test_get_triggers_exception(
|
||||
|
@ -115,7 +115,7 @@ async def test_get_triggers_exception(
|
|||
triggers = await async_get_device_automations(
|
||||
hass, DeviceAutomationType.TRIGGER, device_entity.id
|
||||
)
|
||||
assert_lists_same(triggers, expected_triggers)
|
||||
assert triggers == unordered(expected_triggers)
|
||||
|
||||
|
||||
async def test_if_fires_on_event(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue