mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Improve test for get_canceled_exit_order
This commit is contained in:
@@ -1932,6 +1932,10 @@ def test_get_canceled_exit_order_count(fee, is_short):
|
|||||||
|
|
||||||
create_mock_trades(fee, is_short=is_short)
|
create_mock_trades(fee, is_short=is_short)
|
||||||
trade = Trade.get_trades([Trade.pair == 'ETC/BTC']).first()
|
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
|
assert trade.get_canceled_exit_order_count() == 1
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user