From de8d789962ce8094eb0a9a28b03fe3b27448befb Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 17 Feb 2022 19:37:24 +0100 Subject: [PATCH] Fix test missing assert statement --- tests/exchange/test_binance.py | 9 +-------- tests/exchange/test_okx.py | 8 +------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/tests/exchange/test_binance.py b/tests/exchange/test_binance.py index c20f17409..f6016a2fc 100644 --- a/tests/exchange/test_binance.py +++ b/tests/exchange/test_binance.py @@ -148,14 +148,7 @@ def test_stoploss_order_dry_run_binance(default_conf, mocker): (1501, 1499, 1501, "sell"), (1499, 1501, 1499, "buy") ]) -def test_stoploss_adjust_binance( - mocker, - default_conf, - sl1, - sl2, - sl3, - side -): +def test_stoploss_adjust_binance(mocker, default_conf, sl1, sl2, sl3, side): exchange = get_patched_exchange(mocker, default_conf, id='binance') order = { 'type': 'stop_loss_limit', diff --git a/tests/exchange/test_okx.py b/tests/exchange/test_okx.py index 3bfe7bb21..035e08f26 100644 --- a/tests/exchange/test_okx.py +++ b/tests/exchange/test_okx.py @@ -310,10 +310,9 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets): exchange.margin_mode = MarginMode.ISOLATED exchange.markets = markets # Initialization of load_leverage_tiers happens as part of exchange init. - exchange._leverage_tiers == { + assert exchange._leverage_tiers == { 'ADA/USDT:USDT': [ { - 'tier': 1, 'min': 0, 'max': 500, 'mmr': 0.02, @@ -321,7 +320,6 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets): 'maintAmt': None }, { - 'tier': 2, 'min': 501, 'max': 1000, 'mmr': 0.025, @@ -329,7 +327,6 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets): 'maintAmt': None }, { - 'tier': 3, 'min': 1001, 'max': 2000, 'mmr': 0.03, @@ -339,7 +336,6 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets): ], 'ETH/USDT:USDT': [ { - 'tier': 1, 'min': 0, 'max': 2000, 'mmr': 0.01, @@ -347,7 +343,6 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets): 'maintAmt': None }, { - 'tier': 2, 'min': 2001, 'max': 4000, 'mmr': 0.015, @@ -355,7 +350,6 @@ def test_load_leverage_tiers_okx(default_conf, mocker, markets): 'maintAmt': None }, { - 'tier': 3, 'min': 4001, 'max': 8000, 'mmr': 0.02,