From bbe13cafcb158e612a7c7076e8097bca27a091d6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 16 Nov 2024 10:46:48 +0100 Subject: [PATCH] tests: Remove pointless test --- tests/commands/test_commands.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index a6c195f2f..3ff817855 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -847,28 +847,6 @@ def test_download_data_timerange(mocker, markets, time_machine, time, tzoffset): assert dl_mock.call_args_list[0][1]["timerange"].startts == int(dt_utc(2020, 1, 1).timestamp()) -def test_download_data_no_markets(mocker, caplog): - dl_mock = mocker.patch( - "freqtrade.data.history.history_utils.refresh_backtest_ohlcv_data", - MagicMock(return_value=["ETH/BTC", "XRP/BTC"]), - ) - patch_exchange(mocker, exchange="binance") - mocker.patch(f"{EXMS}.get_markets", return_value={}) - args = [ - "download-data", - "--exchange", - "binance", - "--pairs", - "ETH/BTC", - "XRP/BTC", - "--days", - "20", - ] - start_download_data(get_args(args)) - assert dl_mock.call_args[1]["timerange"].starttype == "date" - assert log_has("Pairs [ETH/BTC,XRP/BTC] not available on exchange Binance.", caplog) - - def test_download_data_no_exchange(mocker): mocker.patch( "freqtrade.data.history.history_utils.refresh_backtest_ohlcv_data",