diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index 9dd5ffebc..3544bc2d6 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -16,6 +16,7 @@ from freqtrade.commands import ( start_convert_trades, start_create_userdir, start_download_data, + start_edge, start_hyperopt_list, start_hyperopt_show, start_install_ui, @@ -1937,3 +1938,15 @@ def test_start_show_config(capsys, caplog): assert '"max_open_trades":' in captured.out assert '"secret": "REDACTED"' not in captured.out assert log_has_re(r"Sensitive information will be shown in the upcoming output.*", caplog) + + +def test_start_edge(): + args = [ + "edge", + "--config", + "tests/testdata/testconfigs/main_test_config.json", + ] + + pargs = get_args(args) + with pytest.raises(OperationalException, match="The Edge module has been deprecated in 2023.9"): + start_edge(pargs) diff --git a/tests/test_configuration.py b/tests/test_configuration.py index dffac569e..446a7516a 100644 --- a/tests/test_configuration.py +++ b/tests/test_configuration.py @@ -1062,6 +1062,17 @@ def test__validate_orderflow(default_conf) -> None: validate_config_consistency(conf) +def test_validate_edge_removal(default_conf): + default_conf["edge"] = { + "enabled": True, + } + with pytest.raises( + ConfigurationError, + match="Edge is no longer supported and has been removed from Freqtrade with 2025.6.", + ): + validate_config_consistency(default_conf) + + def test_load_config_test_comments() -> None: """ Load config with comments