From fac6956eebd31f418b2128aac2324d8298127c9d Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 2 Jan 2022 22:25:40 +0100 Subject: [PATCH] Fix test failure after merge --- tests/optimize/test_backtesting_adjust_position.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/optimize/test_backtesting_adjust_position.py b/tests/optimize/test_backtesting_adjust_position.py index 38d0a27d2..a7f953008 100644 --- a/tests/optimize/test_backtesting_adjust_position.py +++ b/tests/optimize/test_backtesting_adjust_position.py @@ -1,5 +1,7 @@ # pragma pylint: disable=missing-docstring, W0212, line-too-long, C0103, unused-argument +from copy import deepcopy + import pandas as pd from arrow import Arrow @@ -31,7 +33,7 @@ def test_backtest_position_adjustment(default_conf, fee, mocker, testdatadir) -> processed = backtesting.strategy.advise_all_indicators(data) min_date, max_date = get_timerange(processed) result = backtesting.backtest( - processed=processed, + processed=deepcopy(processed), start_date=min_date, end_date=max_date, max_open_trades=10,