chore: update get_patched_exchange argument

This commit is contained in:
Matthias
2024-07-05 09:18:14 +02:00
parent 8b50973411
commit f3e2dcd342
12 changed files with 172 additions and 172 deletions

View File

@@ -275,10 +275,10 @@ def patch_exchange(
def get_patched_exchange(
mocker, config, api_mock=None, id="binance", mock_markets=True, mock_supported_modes=True
mocker, config, api_mock=None, exchange="binance", mock_markets=True, mock_supported_modes=True
) -> Exchange:
patch_exchange(mocker, api_mock, id, mock_markets, mock_supported_modes)
config["exchange"]["name"] = id
patch_exchange(mocker, api_mock, exchange, mock_markets, mock_supported_modes)
config["exchange"]["name"] = exchange
try:
exchange = ExchangeResolver.load_exchange(config, load_leverage_tiers=True)
except ImportError: