Skip to content

Commit d5b296c

Browse files
committed
test: fix gate stoploss test
1 parent c63fba2 commit d5b296c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/exchange/test_gate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ def test_fetch_stoploss_order_gate(default_conf, mocker):
1616

1717
exchange.fetch_stoploss_order("1234", "ETH/BTC")
1818
assert fetch_order_mock.call_count == 1
19-
assert fetch_order_mock.call_args_list[0][1]["order_id"] == "1234"
20-
assert fetch_order_mock.call_args_list[0][1]["pair"] == "ETH/BTC"
21-
assert fetch_order_mock.call_args_list[0][1]["params"] == {"stop": True}
19+
assert fetch_order_mock.call_args_list[0][0][0] == "1234"
20+
assert fetch_order_mock.call_args_list[0][0][1] == "ETH/BTC"
21+
assert fetch_order_mock.call_args_list[0][0][2] == {"stop": True}
2222

2323
default_conf["trading_mode"] = "futures"
2424
default_conf["margin_mode"] = "isolated"
@@ -36,7 +36,7 @@ def test_fetch_stoploss_order_gate(default_conf, mocker):
3636

3737
exchange.fetch_stoploss_order("1234", "ETH/BTC")
3838
assert exchange.fetch_order.call_count == 2
39-
assert exchange.fetch_order.call_args_list[0][1]["order_id"] == "1234"
39+
assert exchange.fetch_order.call_args_list[0][0][0] == "1234"
4040
assert exchange.fetch_order.call_args_list[1][1]["order_id"] == "222555"
4141

4242

0 commit comments

Comments
 (0)