open_order_id should be None when handling stoploss orders

This commit is contained in:
Matthias 2020-01-23 19:38:35 +01:00
parent 82797e768f
commit f5a44e4fc4

View File

@ -1165,7 +1165,7 @@ def test_handle_sle_cancel_cant_recreate(mocker, default_conf, fee, caplog,
freqtrade.enter_positions()
trade = Trade.query.first()
trade.is_open = True
trade.open_order_id = '12345'
trade.open_order_id = None
trade.stoploss_order_id = 100
assert trade