From 68083b7fdd2cb12dbe65ac420481d21e1929c748 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 11 Nov 2021 20:07:56 +0100 Subject: [PATCH] Fix sqlinsert failure in test --- tests/test_freqtradebot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index d406f9642..82319627e 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -4748,6 +4748,7 @@ def test_update_funding_fees( time_machine.move_to("2021-09-01 00:00:00 +00:00") open_order = limit_order_open[enter_side(is_short)] + open_exit_order = limit_order_open[exit_side(is_short)] bid = 0.11 enter_rate_mock = MagicMock(return_value=bid) enter_mm = MagicMock(return_value=open_order) @@ -4825,7 +4826,7 @@ def test_update_funding_fees( mark_prices[trade.pair][1630454400000] * funding_rates[trade.pair][1630454400000] ) - + mocker.patch('freqtrade.exchange.Exchange.create_order', return_value=open_exit_order) # create_mock_trades(fee, False) time_machine.move_to("2021-09-01 08:00:00 +00:00") if schedule_off: