revert test_pairlist

This commit is contained in:
kevinjulian 2021-07-23 18:30:25 +07:00
parent aea5da0c73
commit 8032257fdf

View File

@ -925,20 +925,20 @@ def test_spreadfilter_invalid_data(mocker, default_conf, markets, tickers, caplo
get_tickers=tickers get_tickers=tickers
) )
freqtrade = get_patched_freqtradebot(mocker, default_conf) ftbot = get_patched_freqtradebot(mocker, default_conf)
freqtrade.pairlists.refresh_pairlist() ftbot.pairlists.refresh_pairlist()
assert len(freqtrade.pairlists.whitelist) == 5 assert len(ftbot.pairlists.whitelist) == 5
tickers.return_value['ETH/BTC']['ask'] = 0.0 tickers.return_value['ETH/BTC']['ask'] = 0.0
del tickers.return_value['TKN/BTC'] del tickers.return_value['TKN/BTC']
del tickers.return_value['LTC/BTC'] del tickers.return_value['LTC/BTC']
mocker.patch.multiple('freqtrade.exchange.Exchange', get_tickers=tickers) 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 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", [ @pytest.mark.parametrize("pairlistconfig,desc_expected,exception_expected", [