updated unit tests

This commit is contained in:
Kavinkumar
2022-03-02 20:04:28 +05:30
parent dcba781ef7
commit 988a9f05f2
5 changed files with 12 additions and 24 deletions

View File

@@ -227,8 +227,7 @@ 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()
oobj = Order.parse_from_ccxt_object(limit_buy_order_usdt, 'ADA/USDT', 'buy')
trade.update_trade(oobj)
trade.open_rate = 2
#############################################
# stoploss shoud be hit