Improve test for get_canceled_exit_order

This commit is contained in:
Matthias
2023-09-16 09:13:20 +02:00
parent ae4021da14
commit fed24c1308

View File

@@ -1932,6 +1932,10 @@ def test_get_canceled_exit_order_count(fee, is_short):
create_mock_trades(fee, is_short=is_short)
trade = Trade.get_trades([Trade.pair == 'ETC/BTC']).first()
# No canceled order.
assert trade.get_canceled_exit_order_count() == 0
trade.orders[-1].status = 'canceled'
assert trade.get_canceled_exit_order_count() == 1