move pairlist filters out of config[]

This commit is contained in:
Matthias
2019-11-19 06:34:54 +01:00
parent 66a273b31b
commit c22b00b303
7 changed files with 30 additions and 41 deletions

View File

@@ -726,7 +726,7 @@ def test_rpc_whitelist(mocker, default_conf) -> None:
def test_rpc_whitelist_dynamic(mocker, default_conf) -> None:
default_conf['pairlists'] = [{'method': 'VolumePairList',
'config': {'number_assets': 4}
'number_assets': 4,
}]
mocker.patch('freqtrade.exchange.Exchange.exchange_has', MagicMock(return_value=True))
mocker.patch('freqtrade.rpc.telegram.Telegram', MagicMock())

View File

@@ -1063,7 +1063,7 @@ def test_whitelist_dynamic(default_conf, update, mocker) -> None:
)
mocker.patch('freqtrade.exchange.Exchange.exchange_has', MagicMock(return_value=True))
default_conf['pairlists'] = [{'method': 'VolumePairList',
'config': {'number_assets': 4}
'number_assets': 4
}]
freqtradebot = get_patched_freqtradebot(mocker, default_conf)