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
|
@ -3,6 +3,7 @@ from datetime import timedelta
|
|||
|
||||
from freezegun import freeze_time
|
||||
import pytest
|
||||
from pytest_unordered import unordered
|
||||
|
||||
import homeassistant.components.automation as automation
|
||||
from homeassistant.components.device_automation import DeviceAutomationType
|
||||
|
@ -16,7 +17,6 @@ import homeassistant.util.dt as dt_util
|
|||
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
assert_lists_same,
|
||||
async_get_device_automation_capabilities,
|
||||
async_get_device_automations,
|
||||
async_mock_service,
|
||||
|
@ -111,7 +111,7 @@ async def test_get_conditions_hidden_auxiliary(
|
|||
conditions = await async_get_device_automations(
|
||||
hass, DeviceAutomationType.CONDITION, device_entry.id
|
||||
)
|
||||
assert_lists_same(conditions, expected_conditions)
|
||||
assert conditions == unordered(expected_conditions)
|
||||
|
||||
|
||||
async def test_get_condition_capabilities(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue