From 5d8e0573f6bf941653821af556e38cd936e2c6e5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 16 Sep 2023 14:56:37 +0200 Subject: [PATCH] Run handle_onexchange_order test without dry-run --- tests/test_freqtradebot.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index bfe0ec558..0886c9fca 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -5660,6 +5660,7 @@ def test_handle_insufficient_funds(mocker, default_conf_usdt, fee, is_short, cap @pytest.mark.usefixtures("init_persistence") @pytest.mark.parametrize("is_short", [False, True]) def test_handle_onexchange_order(mocker, default_conf_usdt, limit_order, is_short, caplog): + default_conf_usdt['dry_run'] = False freqtrade = get_patched_freqtradebot(mocker, default_conf_usdt) mock_uts = mocker.spy(freqtrade, 'update_trade_state') @@ -5671,17 +5672,17 @@ def test_handle_onexchange_order(mocker, default_conf_usdt, limit_order, is_shor ]) trade = Trade( - pair='ETH/USDT', - fee_open=0.001, - fee_close=0.001, - open_rate=entry_order['price'], - open_date=dt_now(), - stake_amount=entry_order['cost'], - amount=entry_order['amount'], - exchange="binance", - is_short=is_short, - leverage=1, - ) + pair='ETH/USDT', + fee_open=0.001, + fee_close=0.001, + open_rate=entry_order['price'], + open_date=dt_now(), + stake_amount=entry_order['cost'], + amount=entry_order['amount'], + exchange="binance", + is_short=is_short, + leverage=1, + ) trade.orders.append(Order.parse_from_ccxt_object( entry_order, 'ADA/USDT', entry_side(is_short))