From a581ca66bf33e0e9fa4b3a36eea0b56804fd33df Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 21 Jun 2019 19:31:18 +0200 Subject: [PATCH] Adapt test after merging develop --- freqtrade/arguments.py | 1 + freqtrade/tests/test_arguments.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/freqtrade/arguments.py b/freqtrade/arguments.py index 3075dd0fe..59123a14b 100644 --- a/freqtrade/arguments.py +++ b/freqtrade/arguments.py @@ -444,6 +444,7 @@ class Arguments(object): '-p', '--pairs', help='Show profits for only this pairs. Pairs are comma-separated.', dest='pairs', + required=True ) def download_data_options(self) -> None: diff --git a/freqtrade/tests/test_arguments.py b/freqtrade/tests/test_arguments.py index 78ca9d055..4c2bf708d 100644 --- a/freqtrade/tests/test_arguments.py +++ b/freqtrade/tests/test_arguments.py @@ -195,6 +195,7 @@ def test_plot_dataframe_options() -> None: '-p', 'UNITTEST/BTC', ] arguments = Arguments(args, '') + arguments.common_scripts_options() arguments.plot_dataframe_options() pargs = arguments.parse_args(True) assert pargs.indicators1 == "sma10,sma100" @@ -205,6 +206,7 @@ def test_plot_dataframe_options() -> None: # Pop pairs argument args = args[:-2] arguments = Arguments(args, '') + arguments.common_scripts_options() arguments.plot_dataframe_options() with pytest.raises(SystemExit, match=r'2'): arguments.parse_args(True)