Relax dry-run leverage test-case to simplify future updates

This commit is contained in:
Matthias
2022-05-21 16:23:29 +02:00
parent 97abcf4b32
commit 681ef13174
2 changed files with 155 additions and 106 deletions

View File

@@ -490,11 +490,9 @@ def test_fill_leverage_tiers_binance_dryrun(default_conf, mocker, leverage_tiers
default_conf['margin_mode'] = MarginMode.ISOLATED
exchange = get_patched_exchange(mocker, default_conf, api_mock, id="binance")
exchange.fill_leverage_tiers()
leverage_tiers = leverage_tiers
assert len(exchange._leverage_tiers.keys()) > 100
for key, value in leverage_tiers.items():
assert exchange._leverage_tiers[key] == value
assert isinstance(exchange._leverage_tiers[key], list)
def test__set_leverage_binance(mocker, default_conf):