Move plot-options to arguments.py

This commit is contained in:
Matthias
2019-06-16 19:35:15 +02:00
parent bf2c0390e7
commit 0300128cb8
3 changed files with 48 additions and 28 deletions

View File

@@ -186,6 +186,20 @@ def test_download_data_options() -> None:
assert args.exchange == 'binance'
def test_plot_dataframe_options() -> None:
args = [
'--indicators1', 'sma10,sma100',
'--indicators2', 'macd,fastd,fastk',
'--plot-limit', '30',
]
arguments = Arguments(args, '')
arguments.plot_dataframe_options()
args = arguments.parse_args(True)
assert args.indicators1 == "sma10,sma100"
assert args.indicators2 == "macd,fastd,fastk"
assert args.plot_limit == 30
def test_check_int_positive() -> None:
assert Arguments.check_int_positive("3") == 3