Adapt test after merging develop

This commit is contained in:
Matthias 2019-06-21 19:31:18 +02:00
parent 5d6819bb28
commit a581ca66bf
2 changed files with 3 additions and 0 deletions

View File

@ -444,6 +444,7 @@ class Arguments(object):
'-p', '--pairs', '-p', '--pairs',
help='Show profits for only this pairs. Pairs are comma-separated.', help='Show profits for only this pairs. Pairs are comma-separated.',
dest='pairs', dest='pairs',
required=True
) )
def download_data_options(self) -> None: def download_data_options(self) -> None:

View File

@ -195,6 +195,7 @@ def test_plot_dataframe_options() -> None:
'-p', 'UNITTEST/BTC', '-p', 'UNITTEST/BTC',
] ]
arguments = Arguments(args, '') arguments = Arguments(args, '')
arguments.common_scripts_options()
arguments.plot_dataframe_options() arguments.plot_dataframe_options()
pargs = arguments.parse_args(True) pargs = arguments.parse_args(True)
assert pargs.indicators1 == "sma10,sma100" assert pargs.indicators1 == "sma10,sma100"
@ -205,6 +206,7 @@ def test_plot_dataframe_options() -> None:
# Pop pairs argument # Pop pairs argument
args = args[:-2] args = args[:-2]
arguments = Arguments(args, '') arguments = Arguments(args, '')
arguments.common_scripts_options()
arguments.plot_dataframe_options() arguments.plot_dataframe_options()
with pytest.raises(SystemExit, match=r'2'): with pytest.raises(SystemExit, match=r'2'):
arguments.parse_args(True) arguments.parse_args(True)