From c52e688979331096828fc3c24868c00c9645a51e Mon Sep 17 00:00:00 2001 From: Gerald Lonlas Date: Sun, 4 Mar 2018 00:58:20 -0800 Subject: [PATCH] Fix unit tests in test_arguments.py and test_configuration.py --- freqtrade/tests/test_arguments.py | 2 +- freqtrade/tests/test_configuration.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/tests/test_arguments.py b/freqtrade/tests/test_arguments.py index d3272d0af..940b3811b 100644 --- a/freqtrade/tests/test_arguments.py +++ b/freqtrade/tests/test_arguments.py @@ -129,5 +129,5 @@ def test_parse_args_hyperopt_custom() -> None: assert call_args.epochs == 20 assert call_args.loglevel == logging.INFO assert call_args.subparser == 'hyperopt' - assert call_args.spaces == 'buy' + assert call_args.spaces == ['buy'] assert call_args.func is not None diff --git a/freqtrade/tests/test_configuration.py b/freqtrade/tests/test_configuration.py index d7420337f..20b377ddf 100644 --- a/freqtrade/tests/test_configuration.py +++ b/freqtrade/tests/test_configuration.py @@ -281,5 +281,5 @@ def test_hyperopt_space_argument(mocker, default_conf, caplog) -> None: configuration = Configuration(args) config = configuration.get_config() assert 'spaces' in config - assert config['spaces'] is 'all' - assert tt.log_has('Parameter -s/--spaces detected: all', caplog.record_tuples) + assert config['spaces'] == ['all'] + assert tt.log_has('Parameter -s/--spaces detected: [\'all\']', caplog.record_tuples)