Update tests for sorted whitelists

Tests for PR #7209
This commit is contained in:
Ed Coppen 2022-08-09 21:09:42 +01:00 committed by GitHub
parent f3b6f08850
commit f4b71fa96c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1183,7 +1183,7 @@ def test_rpc_whitelist(mocker, default_conf) -> None:
ret = rpc._rpc_whitelist() ret = rpc._rpc_whitelist()
assert len(ret['method']) == 1 assert len(ret['method']) == 1
assert 'StaticPairList' in ret['method'] 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: 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 len(ret['method']) == 1
assert 'VolumePairList' in ret['method'] assert 'VolumePairList' in ret['method']
assert ret['length'] == 4 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: def test_rpc_blacklist(mocker, default_conf) -> None: