Fix wrong hint '--update-pairs-cached' from Backtesting/Hyperopt
This commit is contained in:
parent
52386d8153
commit
792dd556a1
@ -103,7 +103,10 @@ def load_data(datadir: str,
|
||||
if pairdata:
|
||||
result[pair] = pairdata
|
||||
else:
|
||||
logger.warn('No data for pair %s, use --update-pairs-cached to download the data', pair)
|
||||
logger.warning(
|
||||
'No data for pair %s, use --refresh-pairs-cached to download the data',
|
||||
pair
|
||||
)
|
||||
|
||||
return result
|
||||
|
||||
|
@ -105,7 +105,7 @@ def test_load_data_with_new_pair_1min(ticker_history, mocker, caplog) -> None:
|
||||
refresh_pairs=False,
|
||||
pairs=['MEME/BTC'])
|
||||
assert os.path.isfile(file) is False
|
||||
assert log_has('No data for pair MEME/BTC, use --update-pairs-cached to download the data',
|
||||
assert log_has('No data for pair MEME/BTC, use --refresh-pairs-cached to download the data',
|
||||
caplog.record_tuples)
|
||||
|
||||
# download a new pair if refresh_pairs is set
|
||||
|
Loading…
Reference in New Issue
Block a user