Try fix fluky test

This commit is contained in:
Matthias 2021-06-19 20:30:40 +02:00
parent 204758834d
commit 347eceeda5

View File

@ -75,7 +75,7 @@ def whitelist_conf_agefilter(default_conf):
"method": "VolumePairList", "method": "VolumePairList",
"number_assets": 5, "number_assets": 5,
"sort_key": "quoteVolume", "sort_key": "quoteVolume",
"refresh_period": 0, "refresh_period": -1,
}, },
{ {
"method": "AgeFilter", "method": "AgeFilter",
@ -687,7 +687,6 @@ def test_agefilter_caching(mocker, markets, whitelist_conf_agefilter, tickers, o
freqtrade.pairlists.refresh_pairlist() freqtrade.pairlists.refresh_pairlist()
assert len(freqtrade.pairlists.whitelist) == 3 assert len(freqtrade.pairlists.whitelist) == 3
assert freqtrade.exchange.refresh_latest_ohlcv.call_count > 0 assert freqtrade.exchange.refresh_latest_ohlcv.call_count > 0
# freqtrade.config['exchange']['pair_whitelist'].append('HOT/BTC')
previous_call_count = freqtrade.exchange.refresh_latest_ohlcv.call_count previous_call_count = freqtrade.exchange.refresh_latest_ohlcv.call_count
freqtrade.pairlists.refresh_pairlist() freqtrade.pairlists.refresh_pairlist()