fix test after plot_dataframe change
This commit is contained in:
parent
545e5c5bc6
commit
9f29ad77bd
@ -4,7 +4,6 @@ import argparse
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from freqtrade.configuration import Arguments
|
from freqtrade.configuration import Arguments
|
||||||
from freqtrade.configuration.arguments import ARGS_PLOT_DATAFRAME
|
|
||||||
from freqtrade.configuration.cli_options import check_int_positive
|
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:
|
def test_plot_dataframe_options() -> None:
|
||||||
args = [
|
args = [
|
||||||
'--indicators1', 'sma10,sma100',
|
'-c', 'config.json.example',
|
||||||
'--indicators2', 'macd,fastd,fastk',
|
'plot-dataframe',
|
||||||
|
'--indicators1', 'sma10', 'sma100',
|
||||||
|
'--indicators2', 'macd', 'fastd', 'fastk',
|
||||||
'--plot-limit', '30',
|
'--plot-limit', '30',
|
||||||
'-p', 'UNITTEST/BTC',
|
'-p', 'UNITTEST/BTC',
|
||||||
]
|
]
|
||||||
arguments = Arguments(args, '')
|
pargs = Arguments(args, '').get_parsed_arg()
|
||||||
arguments._build_args(ARGS_PLOT_DATAFRAME)
|
|
||||||
pargs = arguments._parse_args()
|
assert pargs.indicators1 == ["sma10", "sma100"]
|
||||||
assert pargs.indicators1 == "sma10,sma100"
|
assert pargs.indicators2 == ["macd", "fastd", "fastk"]
|
||||||
assert pargs.indicators2 == "macd,fastd,fastk"
|
|
||||||
assert pargs.plot_limit == 30
|
assert pargs.plot_limit == 30
|
||||||
assert pargs.pairs == ["UNITTEST/BTC"]
|
assert pargs.pairs == ["UNITTEST/BTC"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user