From 2b7d94a8551fbe64dd9225eea7ea6fcec09fb3fc Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Fri, 3 Sep 2021 20:30:19 -0600 Subject: [PATCH] Rearranged tests at end of ftx to match other exchanges --- tests/exchange/test_ftx.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/exchange/test_ftx.py b/tests/exchange/test_ftx.py index b3deae3de..771065cdd 100644 --- a/tests/exchange/test_ftx.py +++ b/tests/exchange/test_ftx.py @@ -195,13 +195,6 @@ def test_get_order_id(mocker, default_conf): assert exchange.get_order_id_conditional(order) == '1111' -def test_fill_leverage_brackets(default_conf, mocker): - # FTX only has one account wide leverage, so there's no leverage brackets - exchange = get_patched_exchange(mocker, default_conf, id="ftx") - exchange.fill_leverage_brackets() - assert bool(exchange._leverage_brackets) is False - - @pytest.mark.parametrize('pair,nominal_value,max_lev', [ ("ADA/BTC", 0.0, 20.0), ("BTC/EUR", 100.0, 20.0), @@ -210,3 +203,10 @@ def test_fill_leverage_brackets(default_conf, mocker): def test_get_max_leverage_ftx(default_conf, mocker, pair, nominal_value, max_lev): exchange = get_patched_exchange(mocker, default_conf, id="ftx") assert exchange.get_max_leverage(pair, nominal_value) == max_lev + + +def test_fill_leverage_brackets_ftx(default_conf, mocker): + # FTX only has one account wide leverage, so there's no leverage brackets + exchange = get_patched_exchange(mocker, default_conf, id="ftx") + exchange.fill_leverage_brackets() + assert bool(exchange._leverage_brackets) is False