Delete trade if replacing the first order failed

part of #9128
This commit is contained in:
Matthias
2023-09-02 16:49:12 +02:00
parent be044fbacf
commit 25f5dbfcbd
3 changed files with 9 additions and 1 deletions

View File

@@ -563,7 +563,7 @@ def test_dca_order_adjust_entry_replace_fails(
assert log_has_re(msg, caplog)
assert entry_mock.call_count == 2
assert len(Trade.get_trades().all()) == 2
assert len(Trade.get_trades().all()) == 1
assert len(Order.get_open_orders()) == 0