Keeping cached Klines only in exchange and renaming _cached_klines to

klines.
This commit is contained in:
misagh
2018-08-16 11:37:31 +02:00
parent a2d9126917
commit e6e2799f03
3 changed files with 10 additions and 11 deletions

View File

@@ -158,13 +158,13 @@ def test_refresh_tickers(mocker, default_conf, caplog) -> None:
pairs = ['IOTA/ETH', 'XRP/ETH']
# empty dicts
assert not freqtrade._klines
assert not freqtrade.exchange.klines
freqtrade.refresh_tickers(['IOTA/ETH', 'XRP/ETH'])
assert log_has(f'Refreshing klines for {len(pairs)} pairs', caplog.record_tuples)
assert freqtrade._klines
assert freqtrade.exchange.klines
for pair in pairs:
assert freqtrade._klines[pair]
assert freqtrade.exchange.klines[pair]
def test_gen_pair_whitelist(mocker, default_conf, tickers) -> None: