From 1143aba6718309ab928a0519c222035c194adf86 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 16 Dec 2025 21:02:48 +0100 Subject: [PATCH] test: simplify test call --- tests/exchange/test_okx.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/exchange/test_okx.py b/tests/exchange/test_okx.py index 5c8983858..ae52bd1ff 100644 --- a/tests/exchange/test_okx.py +++ b/tests/exchange/test_okx.py @@ -665,9 +665,10 @@ def test_stoploss_cancel_okx(mocker, default_conf): exchange.cancel_stoploss_order("1234", "ETH/USDT") assert co_mock.call_count == 1 - assert co_mock.call_args_list[0][0][0] == "1234" - assert co_mock.call_args_list[0][0][1] == "ETH/USDT" - assert co_mock.call_args_list[0][0][2] == {"stop": True} + args, _ = co_mock.call_args + assert args[0] == "1234" + assert args[1] == "ETH/USDT" + assert args[2] == {"stop": True} def test__get_stop_params_okx(mocker, default_conf):