test_handle_cancel_exit_limit - partially fill by half

This commit is contained in:
Matthias 2023-09-07 18:16:32 +02:00
parent bae4abace2
commit 95d8c45481

View File

@ -3539,7 +3539,7 @@ def test_handle_cancel_exit_limit(mocker, default_conf_usdt, fee, is_short,
send_msg_mock.reset_mock()
order['filled'] = 1
order['filled'] = amount * 0.5 * leverage
assert freqtrade.handle_cancel_exit(trade, order, reason)
assert send_msg_mock.call_count == 1
assert (send_msg_mock.call_args_list[0][0][0]['reason']