From 77dcc5354cc581f4247c757ece92b0fbb039098a Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 30 May 2025 07:08:58 +0200 Subject: [PATCH] test: update hyperliquid test for new load_markets behavior --- tests/exchange/test_hyperliquid.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/exchange/test_hyperliquid.py b/tests/exchange/test_hyperliquid.py index 808bef802..a169a9a73 100644 --- a/tests/exchange/test_hyperliquid.py +++ b/tests/exchange/test_hyperliquid.py @@ -283,7 +283,8 @@ def test_hyperliquid_dry_run_liquidation_price(default_conf, mocker): default_conf["trading_mode"] = "futures" default_conf["margin_mode"] = "isolated" default_conf["stake_currency"] = "USDC" - api_mock.load_markets = get_mock_coro(return_value=markets) + api_mock.load_markets = get_mock_coro() + api_mock.markets = markets exchange = get_patched_exchange( mocker, default_conf, api_mock, exchange="hyperliquid", mock_markets=False )