From c9e15c2f86b7e7b1c8a2ae26d3c303f35f6bb70d Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 31 Aug 2019 15:19:59 +0200 Subject: [PATCH] Add test for new check_exchange branch --- freqtrade/tests/test_configuration.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/freqtrade/tests/test_configuration.py b/freqtrade/tests/test_configuration.py index b8bc62eb6..5a70715a4 100644 --- a/freqtrade/tests/test_configuration.py +++ b/freqtrade/tests/test_configuration.py @@ -479,6 +479,7 @@ def test_hyperopt_with_arguments(mocker, default_conf, caplog) -> None: def test_check_exchange(default_conf, caplog) -> None: # Test an officially supported by Freqtrade team exchange + default_conf['runmode'] = RunMode.DRY_RUN default_conf.get('exchange').update({'name': 'BITTREX'}) assert check_exchange(default_conf) assert log_has_re(r"Exchange .* is officially supported by the Freqtrade development team\.", @@ -523,6 +524,11 @@ def test_check_exchange(default_conf, caplog) -> None: ): check_exchange(default_conf) + # Test no exchange... + default_conf.get('exchange').update({'name': ''}) + default_conf['runmode'] = RunMode.PLOT + assert check_exchange(default_conf) + def test_cli_verbose_with_params(default_conf, mocker, caplog) -> None: patched_configuration_load_config_file(mocker, default_conf)