diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index df2eb2c10..0f34f6e10 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -816,7 +816,7 @@ def test_start_list_strategies(mocker, caplog, capsys): # pargs['config'] = None start_list_strategies(pargs) captured = capsys.readouterr() - assert "TestStrategyLegacy" in captured.out + assert "TestStrategyLegacyV1" in captured.out assert "legacy_strategy.py" not in captured.out assert "DefaultStrategy" in captured.out @@ -831,7 +831,7 @@ def test_start_list_strategies(mocker, caplog, capsys): # pargs['config'] = None start_list_strategies(pargs) captured = capsys.readouterr() - assert "TestStrategyLegacy" in captured.out + assert "TestStrategyLegacyV1" in captured.out assert "legacy_strategy.py" in captured.out assert "DefaultStrategy" in captured.out diff --git a/tests/optimize/test_backtesting.py b/tests/optimize/test_backtesting.py index 998b2d837..80f7aa2d6 100644 --- a/tests/optimize/test_backtesting.py +++ b/tests/optimize/test_backtesting.py @@ -473,7 +473,7 @@ def test_backtesting_pairlist_list(default_conf, mocker, caplog, testdatadir, ti Backtesting(default_conf) # Multiple strategies - default_conf['strategy_list'] = ['DefaultStrategy', 'TestStrategyLegacy'] + default_conf['strategy_list'] = ['DefaultStrategy', 'TestStrategyLegacyV1'] with pytest.raises(OperationalException, match='PrecisionFilter not allowed for backtesting multiple strategies.'): Backtesting(default_conf) @@ -909,7 +909,7 @@ def test_backtest_start_multi_strat(default_conf, mocker, caplog, testdatadir): '--disable-max-market-positions', '--strategy-list', 'DefaultStrategy', - 'TestStrategyLegacy', + 'TestStrategyLegacyV1', ] args = get_args(args) start_backtesting(args) @@ -932,7 +932,7 @@ def test_backtest_start_multi_strat(default_conf, mocker, caplog, testdatadir): 'up to 2017-11-14 22:58:00 (0 days).', 'Parameter --enable-position-stacking detected ...', 'Running backtesting for Strategy DefaultStrategy', - 'Running backtesting for Strategy TestStrategyLegacy', + 'Running backtesting for Strategy TestStrategyLegacyV1', ] for line in exists: @@ -1013,7 +1013,7 @@ def test_backtest_start_multi_strat_nomock(default_conf, mocker, caplog, testdat '--disable-max-market-positions', '--strategy-list', 'DefaultStrategy', - 'TestStrategyLegacy', + 'TestStrategyLegacyV1', ] args = get_args(args) start_backtesting(args) @@ -1030,7 +1030,7 @@ def test_backtest_start_multi_strat_nomock(default_conf, mocker, caplog, testdat 'up to 2017-11-14 22:58:00 (0 days).', 'Parameter --enable-position-stacking detected ...', 'Running backtesting for Strategy DefaultStrategy', - 'Running backtesting for Strategy TestStrategyLegacy', + 'Running backtesting for Strategy TestStrategyLegacyV1', ] for line in exists: diff --git a/tests/rpc/test_rpc_apiserver.py b/tests/rpc/test_rpc_apiserver.py index 68bd01911..9a20256cd 100644 --- a/tests/rpc/test_rpc_apiserver.py +++ b/tests/rpc/test_rpc_apiserver.py @@ -1219,7 +1219,7 @@ def test_api_strategies(botclient): assert rc.json() == {'strategies': [ 'DefaultStrategy', 'HyperoptableStrategy', - 'TestStrategyLegacy' + 'TestStrategyLegacyV1' ]} diff --git a/tests/strategy/strats/failing_strategy.py b/tests/strategy/strats/failing_strategy.py index f8eaac3c3..a65a0ddc2 100644 --- a/tests/strategy/strats/failing_strategy.py +++ b/tests/strategy/strats/failing_strategy.py @@ -5,5 +5,5 @@ import nonexiting_module # noqa from freqtrade.strategy.interface import IStrategy -class TestStrategyLegacy(IStrategy): +class TestStrategyLegacyV1(IStrategy): pass diff --git a/tests/strategy/strats/legacy_strategy.py b/tests/strategy/strats/legacy_strategy.py index 9ef00b110..ebfce632b 100644 --- a/tests/strategy/strats/legacy_strategy.py +++ b/tests/strategy/strats/legacy_strategy.py @@ -10,7 +10,7 @@ from freqtrade.strategy.interface import IStrategy # -------------------------------- # This class is a sample. Feel free to customize it. -class TestStrategyLegacy(IStrategy): +class TestStrategyLegacyV1(IStrategy): """ This is a test strategy using the legacy function headers, which will be removed in a future update. diff --git a/tests/strategy/test_interface.py b/tests/strategy/test_interface.py index eea6a85d2..d03c7d2c1 100644 --- a/tests/strategy/test_interface.py +++ b/tests/strategy/test_interface.py @@ -603,7 +603,7 @@ def test_is_pair_locked(default_conf): def test_is_informative_pairs_callback(default_conf): - default_conf.update({'strategy': 'TestStrategyLegacy'}) + default_conf.update({'strategy': 'TestStrategyLegacyV1'}) strategy = StrategyResolver.load_strategy(default_conf) # Should return empty # Uses fallback to base implementation diff --git a/tests/strategy/test_strategy_loading.py b/tests/strategy/test_strategy_loading.py index 115a2fbde..b173a562b 100644 --- a/tests/strategy/test_strategy_loading.py +++ b/tests/strategy/test_strategy_loading.py @@ -330,7 +330,7 @@ def test_strategy_override_use_sell_profit_only(caplog, default_conf): @pytest.mark.filterwarnings("ignore:deprecated") def test_deprecate_populate_indicators(result, default_conf): default_location = Path(__file__).parent / "strats" - default_conf.update({'strategy': 'TestStrategyLegacy', + default_conf.update({'strategy': 'TestStrategyLegacyV1', 'strategy_path': default_location}) strategy = StrategyResolver.load_strategy(default_conf) with warnings.catch_warnings(record=True) as w: @@ -365,7 +365,7 @@ def test_deprecate_populate_indicators(result, default_conf): def test_call_deprecated_function(result, monkeypatch, default_conf, caplog): default_location = Path(__file__).parent / "strats" del default_conf['timeframe'] - default_conf.update({'strategy': 'TestStrategyLegacy', + default_conf.update({'strategy': 'TestStrategyLegacyV1', 'strategy_path': default_location}) strategy = StrategyResolver.load_strategy(default_conf) metadata = {'pair': 'ETH/BTC'}