From 9f29ad77bd45efc8d53421d726f45f59fbb4d256 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 22 Aug 2019 20:23:38 +0200 Subject: [PATCH] fix test after plot_dataframe change --- freqtrade/tests/test_arguments.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/freqtrade/tests/test_arguments.py b/freqtrade/tests/test_arguments.py index 24f11e32e..e80703418 100644 --- a/freqtrade/tests/test_arguments.py +++ b/freqtrade/tests/test_arguments.py @@ -4,7 +4,6 @@ import argparse import pytest from freqtrade.configuration import Arguments -from freqtrade.configuration.arguments import ARGS_PLOT_DATAFRAME from freqtrade.configuration.cli_options import check_int_positive @@ -149,16 +148,17 @@ def test_download_data_options() -> None: def test_plot_dataframe_options() -> None: args = [ - '--indicators1', 'sma10,sma100', - '--indicators2', 'macd,fastd,fastk', + '-c', 'config.json.example', + 'plot-dataframe', + '--indicators1', 'sma10', 'sma100', + '--indicators2', 'macd', 'fastd', 'fastk', '--plot-limit', '30', '-p', 'UNITTEST/BTC', ] - arguments = Arguments(args, '') - arguments._build_args(ARGS_PLOT_DATAFRAME) - pargs = arguments._parse_args() - assert pargs.indicators1 == "sma10,sma100" - assert pargs.indicators2 == "macd,fastd,fastk" + pargs = Arguments(args, '').get_parsed_arg() + + assert pargs.indicators1 == ["sma10", "sma100"] + assert pargs.indicators2 == ["macd", "fastd", "fastk"] assert pargs.plot_limit == 30 assert pargs.pairs == ["UNITTEST/BTC"]