mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Improve special testcase
This commit is contained in:
parent
0c51e2637f
commit
a049ff9371
|
@ -2390,10 +2390,11 @@ def test_recalc_trade_from_orders_kucoin():
|
|||
|
||||
trade.orders.append(order3)
|
||||
trade.update_trade(order3)
|
||||
# assert trade.amount == o1_amount + o2_amount
|
||||
assert trade.is_open is False
|
||||
# Trade closed correctly - but left a minimal amount.
|
||||
assert trade.amount == 8e-09
|
||||
assert trade.close_profit_abs == 3.90069871
|
||||
assert trade.close_profit == 0.00566035
|
||||
|
||||
|
||||
@pytest.mark.parametrize('is_short', [True, False])
|
||||
|
|
Loading…
Reference in New Issue
Block a user