mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
revert test_pairlist
This commit is contained in:
parent
aea5da0c73
commit
8032257fdf
|
@ -925,20 +925,20 @@ def test_spreadfilter_invalid_data(mocker, default_conf, markets, tickers, caplo
|
|||
get_tickers=tickers
|
||||
)
|
||||
|
||||
freqtrade = get_patched_freqtradebot(mocker, default_conf)
|
||||
freqtrade.pairlists.refresh_pairlist()
|
||||
ftbot = get_patched_freqtradebot(mocker, default_conf)
|
||||
ftbot.pairlists.refresh_pairlist()
|
||||
|
||||
assert len(freqtrade.pairlists.whitelist) == 5
|
||||
assert len(ftbot.pairlists.whitelist) == 5
|
||||
|
||||
tickers.return_value['ETH/BTC']['ask'] = 0.0
|
||||
del tickers.return_value['TKN/BTC']
|
||||
del tickers.return_value['LTC/BTC']
|
||||
mocker.patch.multiple('freqtrade.exchange.Exchange', get_tickers=tickers)
|
||||
|
||||
freqtrade.pairlists.refresh_pairlist()
|
||||
ftbot.pairlists.refresh_pairlist()
|
||||
assert log_has_re(r'Removed .* invalid ticker data.*', caplog)
|
||||
|
||||
assert len(freqtrade.pairlists.whitelist) == 2
|
||||
assert len(ftbot.pairlists.whitelist) == 2
|
||||
|
||||
|
||||
@pytest.mark.parametrize("pairlistconfig,desc_expected,exception_expected", [
|
||||
|
|
Loading…
Reference in New Issue
Block a user