Skip to content

Commit

Permalink
Add test with plot command without configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Aug 31, 2019
1 parent c9e15c2 commit 736deaa
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions freqtrade/tests/test_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,20 @@ def test_plot_dataframe_options() -> None:
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:
assert check_int_positive("3") == 3
assert check_int_positive("1") == 1
Expand Down

0 comments on commit 736deaa

Please sign in to comment.