Allow user to update testdata files with parameter --refresh-pairs-cached (#174)

This commit is contained in:
Gérald LONLAS
2017-12-16 06:42:28 -08:00
committed by Michael Egger
parent e00f02b603
commit 512fcdbcb1
8 changed files with 204 additions and 23 deletions

View File

@@ -95,7 +95,12 @@ def test_parse_args_backtesting_invalid():
def test_parse_args_backtesting_custom(mocker):
backtesting_mock = mocker.patch('freqtrade.optimize.backtesting.start', MagicMock())
args = parse_args(['-c', 'test_conf.json', 'backtesting', '--live', '--ticker-interval', '1'])
args = parse_args([
'-c', 'test_conf.json',
'backtesting',
'--live',
'--ticker-interval', '1',
'--refresh-pairs-cached'])
assert args is None
assert backtesting_mock.call_count == 1
@@ -106,6 +111,7 @@ def test_parse_args_backtesting_custom(mocker):
assert call_args.subparser == 'backtesting'
assert call_args.func is not None
assert call_args.ticker_interval == 1
assert call_args.refresh_pairs is True
def test_parse_args_hyperopt(mocker):