Add test with plot command without configuration
This commit is contained in:
parent
c9e15c2f86
commit
736deaae32
@ -163,6 +163,20 @@ def test_plot_dataframe_options() -> None:
|
|||||||
assert pargs.pairs == ["UNITTEST/BTC"]
|
assert pargs.pairs == ["UNITTEST/BTC"]
|
||||||
|
|
||||||
|
|
||||||
|
def test_plot_profit_options() -> None:
|
||||||
|
args = [
|
||||||
|
'plot-profit',
|
||||||
|
'-p', 'UNITTEST/BTC',
|
||||||
|
'--trade-source', 'DB',
|
||||||
|
"--db-url", "sqlite:///whatever.sqlite",
|
||||||
|
]
|
||||||
|
pargs = Arguments(args, '').get_parsed_arg()
|
||||||
|
|
||||||
|
assert pargs.trade_source == "DB"
|
||||||
|
assert pargs.pairs == ["UNITTEST/BTC"]
|
||||||
|
assert pargs.db_url == "sqlite:///whatever.sqlite"
|
||||||
|
|
||||||
|
|
||||||
def test_check_int_positive() -> None:
|
def test_check_int_positive() -> None:
|
||||||
assert check_int_positive("3") == 3
|
assert check_int_positive("3") == 3
|
||||||
assert check_int_positive("1") == 1
|
assert check_int_positive("1") == 1
|
||||||
|
Loading…
Reference in New Issue
Block a user