better log message for outdated history

This commit is contained in:
Janne Sinivirta
2018-02-24 19:25:08 +02:00
parent 67ad9e9351
commit 646d1f7316
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ def test_get_signal_old_dataframe(default_conf, mocker, caplog):
ticks = DataFrame([{'buy': 1, 'date': oldtime}])
mocker.patch('freqtrade.analyze.analyze_ticker', return_value=DataFrame(ticks))
assert (False, False) == get_signal('xyz', int(default_conf['ticker_interval']))
assert tt.log_has('Too old dataframe for pair xyz. Last ticker is 11 minutes old',
assert tt.log_has('Outdated history for pair xyz. Last tick is 11 minutes old',
caplog.record_tuples)