updated requested changes for tests in PR #6545

This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி
2022-03-24 17:31:29 +05:30
parent f4789268bc
commit 84dcb55879
4 changed files with 31 additions and 21 deletions

View File

@@ -226,7 +226,10 @@ def test_edge_overrides_stoploss(limit_buy_order_usdt, fee, caplog, mocker,
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.enter_positions()
trade = Trade.query.first()
trade.open_rate = 2
limit_buy_order_usdt['id'] = trade.orders[0].order_id
oobj = Order.parse_from_ccxt_object(limit_buy_order_usdt, 'NEO/BTC', 'buy')
trade.update_order(limit_buy_order_usdt)
trade.update_trade(oobj)
#############################################
# stoploss shoud be hit