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,6 +1,7 @@
|
|||
"""The tests for Nest device triggers."""
|
||||
from google_nest_sdm.event import EventMessage
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
import homeassistant.components.automation as automation
|
||||
from homeassistant.components.device_automation import DeviceAutomationType
|
||||
|
@ -17,7 +18,6 @@ from homeassistant.util.dt import utcnow
|
|||
from .common import DEVICE_ID, CreateDevice, FakeSubscriber, PlatformSetup
|
||||
|
||||
from tests.common import (
|
||||
assert_lists_same,
|
||||
async_get_device_automations,
|
||||
async_mock_service,
|
||||
)
|
||||
|
@ -124,7 +124,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_multiple_devices(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue