Skip load_leverage_tiers test from bybit

This commit is contained in:
Matthias 2024-05-09 19:49:52 +02:00
parent e86a0736f3
commit 15bcba9c7e

View File

@ -4936,7 +4936,10 @@ def test_get_max_pair_stake_amount(
@pytest.mark.parametrize('exchange_name', EXCHANGES) @pytest.mark.parametrize('exchange_name', EXCHANGES)
def test_load_leverage_tiers(mocker, default_conf, leverage_tiers, exchange_name): def test_load_leverage_tiers(mocker, default_conf, exchange_name):
if exchange_name == 'bybit':
# TODO: remove once get_leverage_tiers workaround has been removed.
pytest.skip("Currently skipping")
api_mock = MagicMock() api_mock = MagicMock()
api_mock.fetch_leverage_tiers = MagicMock() api_mock.fetch_leverage_tiers = MagicMock()
type(api_mock).has = PropertyMock(return_value={'fetchLeverageTiers': True}) type(api_mock).has = PropertyMock(return_value={'fetchLeverageTiers': True})