parent
c0d60c63ab
commit
ace9626483
@ -1458,6 +1458,23 @@ def test_whitelist_static(default_conf, update, mocker) -> None:
|
|||||||
assert ("Using whitelist `['StaticPairList']` with 4 pairs\n"
|
assert ("Using whitelist `['StaticPairList']` with 4 pairs\n"
|
||||||
"`ETH/BTC, LTC/BTC, XRP/BTC, NEO/BTC`" in msg_mock.call_args_list[0][0][0])
|
"`ETH/BTC, LTC/BTC, XRP/BTC, NEO/BTC`" in msg_mock.call_args_list[0][0][0])
|
||||||
|
|
||||||
|
context = MagicMock()
|
||||||
|
context.args = ['sorted']
|
||||||
|
msg_mock.reset_mock()
|
||||||
|
assert ("Using whitelist `['StaticPairList']` with 4 pairs\n"
|
||||||
|
"`ETH/BTC, LTC/BTC, NEO/BTC, XRP/BTC`" in sorted(msg_mock.call_args_list[0][0][0]))
|
||||||
|
|
||||||
|
context = MagicMock()
|
||||||
|
context.args = ['nobase']
|
||||||
|
msg_mock.reset_mock()
|
||||||
|
assert ("Using whitelist `['StaticPairList']` with 4 pairs\n"
|
||||||
|
"`ETH, LTC, XRP, NEO`" in msg_mock.call_args_list[0][0][0])
|
||||||
|
|
||||||
|
context = MagicMock()
|
||||||
|
context.args = ['nobase', 'sorted']
|
||||||
|
msg_mock.reset_mock()
|
||||||
|
assert ("Using whitelist `['StaticPairList']` with 4 pairs\n"
|
||||||
|
"`ETH, LTC, NEO, XRP`" in msg_mock.call_args_list[0][0][0])
|
||||||
|
|
||||||
def test_whitelist_dynamic(default_conf, update, mocker) -> None:
|
def test_whitelist_dynamic(default_conf, update, mocker) -> None:
|
||||||
mocker.patch('freqtrade.exchange.Exchange.exchange_has', MagicMock(return_value=True))
|
mocker.patch('freqtrade.exchange.Exchange.exchange_has', MagicMock(return_value=True))
|
||||||
@ -1471,6 +1488,23 @@ def test_whitelist_dynamic(default_conf, update, mocker) -> None:
|
|||||||
assert ("Using whitelist `['VolumePairList']` with 4 pairs\n"
|
assert ("Using whitelist `['VolumePairList']` with 4 pairs\n"
|
||||||
"`ETH/BTC, LTC/BTC, XRP/BTC, NEO/BTC`" in msg_mock.call_args_list[0][0][0])
|
"`ETH/BTC, LTC/BTC, XRP/BTC, NEO/BTC`" in msg_mock.call_args_list[0][0][0])
|
||||||
|
|
||||||
|
context = MagicMock()
|
||||||
|
context.args = ['sorted']
|
||||||
|
msg_mock.reset_mock()
|
||||||
|
assert ("Using whitelist `['StaticPairList']` with 4 pairs\n"
|
||||||
|
"`ETH/BTC, LTC/BTC, NEO/BTC, XRP/BTC`" in sorted(msg_mock.call_args_list[0][0][0]))
|
||||||
|
|
||||||
|
context = MagicMock()
|
||||||
|
context.args = ['nobase']
|
||||||
|
msg_mock.reset_mock()
|
||||||
|
assert ("Using whitelist `['StaticPairList']` with 4 pairs\n"
|
||||||
|
"`ETH, LTC, XRP, NEO`" in msg_mock.call_args_list[0][0][0])
|
||||||
|
|
||||||
|
context = MagicMock()
|
||||||
|
context.args = ['nobase', 'sorted']
|
||||||
|
msg_mock.reset_mock()
|
||||||
|
assert ("Using whitelist `['StaticPairList']` with 4 pairs\n"
|
||||||
|
"`ETH, LTC, NEO, XRP`" in msg_mock.call_args_list[0][0][0])
|
||||||
|
|
||||||
def test_blacklist_static(default_conf, update, mocker) -> None:
|
def test_blacklist_static(default_conf, update, mocker) -> None:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user