From ea8fda0deef5801a18af2fce788da30ae16b8cff Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 22 May 2022 08:36:28 +0200 Subject: [PATCH] Slightly improve test --- tests/exchange/test_binance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/exchange/test_binance.py b/tests/exchange/test_binance.py index e00fa289a..324be9962 100644 --- a/tests/exchange/test_binance.py +++ b/tests/exchange/test_binance.py @@ -492,7 +492,9 @@ def test_fill_leverage_tiers_binance_dryrun(default_conf, mocker, leverage_tiers exchange.fill_leverage_tiers() assert len(exchange._leverage_tiers.keys()) > 100 for key, value in leverage_tiers.items(): - assert isinstance(exchange._leverage_tiers[key], list) + v = exchange._leverage_tiers[key] + assert isinstance(v, list) + assert len(v) == len(value) def test__set_leverage_binance(mocker, default_conf):