From 29ba263c3c19a96abecf50015dcc9f6017fa6ee5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 22 Oct 2022 16:23:03 +0200 Subject: [PATCH] Update some test parameters --- tests/optimize/test_backtesting.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/optimize/test_backtesting.py b/tests/optimize/test_backtesting.py index 140cc3394..21d9d25cc 100644 --- a/tests/optimize/test_backtesting.py +++ b/tests/optimize/test_backtesting.py @@ -686,7 +686,7 @@ def test_backtest__get_sell_trade_entry(default_conf, fee, mocker) -> None: ) # No data available. - res = backtesting._get_exit_trade_entry(trade, row_sell) + res = backtesting._get_exit_trade_entry(trade, row_sell, True) assert res is not None assert res.exit_reason == ExitType.ROI.value assert res.close_date_utc == datetime(2020, 1, 1, 5, 0, tzinfo=timezone.utc) @@ -699,13 +699,13 @@ def test_backtest__get_sell_trade_entry(default_conf, fee, mocker) -> None: [], columns=['date', 'open', 'high', 'low', 'close', 'enter_long', 'exit_long', 'enter_short', 'exit_short', 'long_tag', 'short_tag', 'exit_tag']) - res = backtesting._get_exit_trade_entry(trade, row) + res = backtesting._get_exit_trade_entry(trade, row, True) assert res is None # Assign backtest-detail data backtesting.detail_data[pair] = row_detail - res = backtesting._get_exit_trade_entry(trade, row_sell) + res = backtesting._get_exit_trade_entry(trade, row_sell, True) assert res is not None assert res.exit_reason == ExitType.ROI.value # Sell at minute 3 (not available above!)