Skip to content

Commit c69df79

Browse files
tests: ignore order
1 parent 824200a commit c69df79

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

services/web/server/tests/unit/with_dbs/02/test_projects_nodes_handlers__patch.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import pytest
1313
from aiohttp.test_utils import TestClient
14+
from deepdiff import DeepDiff
1415
from pytest_mock.plugin import MockerFixture
1516
from pytest_simcore.helpers.assert_checks import assert_status
1617
from pytest_simcore.helpers.webserver_users import UserInfoDict
@@ -259,10 +260,14 @@ async def test_patch_project_node_inputs_notifies(
259260
await assert_status(resp, expected)
260261
assert mocked_notify_project_node_update.call_count > 1
261262
# 1 message per node updated
262-
assert [
263-
call_args[0][2]
264-
for call_args in mocked_notify_project_node_update.await_args_list
265-
] == list(user_project["workbench"].keys())
263+
assert not DeepDiff(
264+
[
265+
call_args[0][2]
266+
for call_args in mocked_notify_project_node_update.await_args_list
267+
],
268+
list(user_project["workbench"].keys()),
269+
ignore_order=True,
270+
)
266271

267272

268273
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)