test: ensure hyperliquid works without dex configured

This commit is contained in:
Matthias
2025-12-30 13:03:13 +01:00
parent 0dad2b36ab
commit 75a3651493

View File

@@ -643,6 +643,10 @@ def test_hyperliquid_hip3_config_validation(default_conf_usdt, mocker):
)
exchange.validate_config(default_conf_copy)
# Not in futures mode - no dex configured - no error
get_patched_exchange(
mocker, default_conf_usdt, api_mock, exchange="hyperliquid", mock_markets=False
)
# Not in futures mode
default_conf_usdt["exchange"]["hip3_dexes"] = ["xyz"]
with pytest.raises(