mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
test_handle_cancel_exit_limit - partially fill by half
This commit is contained in:
@@ -3539,7 +3539,7 @@ def test_handle_cancel_exit_limit(mocker, default_conf_usdt, fee, is_short,
|
|||||||
|
|
||||||
send_msg_mock.reset_mock()
|
send_msg_mock.reset_mock()
|
||||||
|
|
||||||
order['filled'] = 1
|
order['filled'] = amount * 0.5 * leverage
|
||||||
assert freqtrade.handle_cancel_exit(trade, order, reason)
|
assert freqtrade.handle_cancel_exit(trade, order, reason)
|
||||||
assert send_msg_mock.call_count == 1
|
assert send_msg_mock.call_count == 1
|
||||||
assert (send_msg_mock.call_args_list[0][0][0]['reason']
|
assert (send_msg_mock.call_args_list[0][0][0]['reason']
|
||||||
|
|||||||
Reference in New Issue
Block a user