add --limit-max-trades

This commit is contained in:
gcarq
2017-11-23 00:25:06 +01:00
parent 02ca2ed585
commit 4a707d7452
3 changed files with 40 additions and 16 deletions

View File

@@ -109,6 +109,7 @@ def test_start_backtesting(mocker):
live=True,
loglevel=20,
ticker_interval=1,
limit_max_trades=True,
)
start_backtesting(args)
assert env_mock == {
@@ -116,6 +117,7 @@ def test_start_backtesting(mocker):
'BACKTEST_LIVE': 'true',
'BACKTEST_CONFIG': 'config.json',
'BACKTEST_TICKER_INTERVAL': '1',
'BACKTEST_LIMIT_MAX_TRADES': 'true',
}
assert pytest_mock.call_count == 1