File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments