mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-19 21:40:24 +00:00
test: update tests for new log message format
This commit is contained in:
@@ -1396,7 +1396,7 @@ def test_gen_pair_whitelist_not_supported(mocker, default_conf, tickers) -> None
|
|||||||
)
|
)
|
||||||
|
|
||||||
with pytest.raises(
|
with pytest.raises(
|
||||||
OperationalException, match=r"Exchange does not support dynamic whitelist.*"
|
OperationalException, match=r"Exchange .* does not support dynamic whitelist.*"
|
||||||
):
|
):
|
||||||
get_patched_freqtradebot(mocker, default_conf)
|
get_patched_freqtradebot(mocker, default_conf)
|
||||||
|
|
||||||
@@ -1410,7 +1410,9 @@ def test_pair_whitelist_not_supported_Spread(mocker, default_conf, tickers) -> N
|
|||||||
exchange_has=MagicMock(return_value=False),
|
exchange_has=MagicMock(return_value=False),
|
||||||
)
|
)
|
||||||
|
|
||||||
with pytest.raises(OperationalException, match=r"Exchange does not support fetchTickers, .*"):
|
with pytest.raises(
|
||||||
|
OperationalException, match=r"Exchange .* does not support fetchTickers, .*"
|
||||||
|
):
|
||||||
get_patched_freqtradebot(mocker, default_conf)
|
get_patched_freqtradebot(mocker, default_conf)
|
||||||
|
|
||||||
mocker.patch(f"{EXMS}.exchange_has", MagicMock(return_value=True))
|
mocker.patch(f"{EXMS}.exchange_has", MagicMock(return_value=True))
|
||||||
|
|||||||
@@ -43,9 +43,9 @@ def test_volume_change_pair_list_init_exchange_support(mocker, rpl_config):
|
|||||||
|
|
||||||
with pytest.raises(
|
with pytest.raises(
|
||||||
OperationalException,
|
OperationalException,
|
||||||
match=r"Exchange does not support dynamic whitelist in this configuration. "
|
match=r"Exchange .* does not support dynamic whitelist in this configuration. "
|
||||||
r"Please edit your config and either remove PercentChangePairList, "
|
r"Please edit your config and either remove PercentChangePairList, "
|
||||||
r"or switch to using candles. and restart the bot.",
|
r"or switch to using candles and restart the bot.",
|
||||||
):
|
):
|
||||||
get_patched_freqtradebot(mocker, rpl_config)
|
get_patched_freqtradebot(mocker, rpl_config)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user