test: add test to skip download-data for binanceus

This commit is contained in:
Matthias
2026-01-26 07:15:39 +01:00
parent a4a69bd16d
commit 308c80c7b2

View File

@@ -975,6 +975,18 @@ def test_get_historic_ohlcv_binance(
archive_mock.assert_called_once()
if api_called:
api_mock.assert_called_once()
candle_mock.reset_mock()
api_mock.reset_mock()
archive_mock.reset_mock()
# binanceus does not use archive mode!
exchange._can_use_data_download_fast = False
df = exchange.get_historic_ohlcv(pair, timeframe, since_ms, candle_type, is_new_pair, until_ms)
# Never uses archive
assert archive_mock.call_count == 0
assert candle_mock.call_count == (0 if not candle_called else 1)
if api_called:
assert api_mock.call_count == 1
@pytest.mark.parametrize(