From f4b71fa96c871459a377b3a3167bf99e91728de9 Mon Sep 17 00:00:00 2001 From: Ed Coppen <51025241+ecoppen@users.noreply.github.com> Date: Tue, 9 Aug 2022 21:09:42 +0100 Subject: [PATCH] Update tests for sorted whitelists Tests for PR #7209 --- tests/rpc/test_rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/rpc/test_rpc.py b/tests/rpc/test_rpc.py index 4c580c3c2..6c4156ed3 100644 --- a/tests/rpc/test_rpc.py +++ b/tests/rpc/test_rpc.py @@ -1183,7 +1183,7 @@ def test_rpc_whitelist(mocker, default_conf) -> None: ret = rpc._rpc_whitelist() assert len(ret['method']) == 1 assert 'StaticPairList' in ret['method'] - assert ret['whitelist'] == default_conf['exchange']['pair_whitelist'] + assert ret['whitelist'] == sorted(default_conf['exchange']['pair_whitelist']) def test_rpc_whitelist_dynamic(mocker, default_conf) -> None: @@ -1199,7 +1199,7 @@ def test_rpc_whitelist_dynamic(mocker, default_conf) -> None: assert len(ret['method']) == 1 assert 'VolumePairList' in ret['method'] assert ret['length'] == 4 - assert ret['whitelist'] == default_conf['exchange']['pair_whitelist'] + assert ret['whitelist'] == sorted(default_conf['exchange']['pair_whitelist']) def test_rpc_blacklist(mocker, default_conf) -> None: