Fixed breaking rpc tests
This commit is contained in:
parent
6f8e66117b
commit
96d09b5615
@ -1003,7 +1003,7 @@ def test_rpc_blacklist(mocker, default_conf) -> None:
|
|||||||
assert len(ret['blacklist']) == 4
|
assert len(ret['blacklist']) == 4
|
||||||
assert ret['blacklist'] == default_conf['exchange']['pair_blacklist']
|
assert ret['blacklist'] == default_conf['exchange']['pair_blacklist']
|
||||||
assert ret['blacklist'] == ['DOGE/BTC', 'HOT/BTC', 'ETH/BTC', 'XRP/.*']
|
assert ret['blacklist'] == ['DOGE/BTC', 'HOT/BTC', 'ETH/BTC', 'XRP/.*']
|
||||||
assert ret['blacklist_expanded'] == ['ETH/BTC', 'XRP/BTC']
|
assert ret['blacklist_expanded'] == ['ETH/BTC', 'XRP/BTC', 'XRP/USDT']
|
||||||
assert 'errors' in ret
|
assert 'errors' in ret
|
||||||
assert isinstance(ret['errors'], dict)
|
assert isinstance(ret['errors'], dict)
|
||||||
|
|
||||||
|
@ -937,7 +937,7 @@ def test_api_blacklist(botclient, mocker):
|
|||||||
data='{"blacklist": ["XRP/.*"]}')
|
data='{"blacklist": ["XRP/.*"]}')
|
||||||
assert_response(rc)
|
assert_response(rc)
|
||||||
assert rc.json() == {"blacklist": ["DOGE/BTC", "HOT/BTC", "ETH/BTC", "XRP/.*"],
|
assert rc.json() == {"blacklist": ["DOGE/BTC", "HOT/BTC", "ETH/BTC", "XRP/.*"],
|
||||||
"blacklist_expanded": ["ETH/BTC", "XRP/BTC"],
|
"blacklist_expanded": ["ETH/BTC", "XRP/BTC", "XRP/USDT"],
|
||||||
"length": 4,
|
"length": 4,
|
||||||
"method": ["StaticPairList"],
|
"method": ["StaticPairList"],
|
||||||
"errors": {},
|
"errors": {},
|
||||||
|
Loading…
Reference in New Issue
Block a user