Improve some more tests by adding proper orders

This commit is contained in:
Matthias
2022-07-24 10:51:13 +02:00
parent 6e691a016d
commit 83cac7bee2
3 changed files with 43 additions and 2 deletions

View File

@@ -830,6 +830,8 @@ def test_rpc_force_exit(default_conf, ticker, fee, mocker) -> None:
assert cancel_order_mock.call_count == 2
assert trade.amount == amount
trade = Trade.query.filter(Trade.id == '3').first()
# make an limit-sell open trade
mocker.patch(
'freqtrade.exchange.Exchange.fetch_order',