Convert select_order to use ft_is_open flag

This commit is contained in:
Matthias
2020-09-11 07:12:10 +02:00
parent 41942e3af1
commit aa8832f70e
4 changed files with 53 additions and 8 deletions

View File

@@ -4295,7 +4295,7 @@ def test_update_closed_trades_without_assigned_fees(mocker, default_conf, fee):
for trade in trades:
if trade.is_open:
# Exclude Trade 4 - as the order is still open.
if trade.select_order('buy', 'closed'):
if trade.select_order('buy', False):
assert trade.fee_open_cost is not None
assert trade.fee_open_currency is not None
else: