mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
test: adapt test to new call logic
This commit is contained in:
@@ -46,9 +46,9 @@ def test_cancel_stoploss_order_gate(default_conf, mocker):
|
||||
|
||||
exchange.cancel_stoploss_order("1234", "ETH/BTC")
|
||||
assert cancel_order_mock.call_count == 1
|
||||
assert cancel_order_mock.call_args_list[0][1]["order_id"] == "1234"
|
||||
assert cancel_order_mock.call_args_list[0][1]["pair"] == "ETH/BTC"
|
||||
assert cancel_order_mock.call_args_list[0][1]["params"] == {"stop": True}
|
||||
assert cancel_order_mock.call_args_list[0][0][0] == "1234"
|
||||
assert cancel_order_mock.call_args_list[0][0][1] == "ETH/BTC"
|
||||
assert cancel_order_mock.call_args_list[0][0][2] == {"stop": True}
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
@@ -665,9 +665,9 @@ 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][1]["order_id"] == "1234"
|
||||
assert co_mock.call_args_list[0][1]["pair"] == "ETH/USDT"
|
||||
assert co_mock.call_args_list[0][1]["params"] == {"stop": True}
|
||||
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}
|
||||
|
||||
|
||||
def test__get_stop_params_okx(mocker, default_conf):
|
||||
|
||||
Reference in New Issue
Block a user