These could be properties.

This commit is contained in:
Reigo Reinmets
2022-01-13 20:31:03 +02:00
parent 13bc5c5d8f
commit ffe69535d8
4 changed files with 12 additions and 9 deletions

View File

@@ -259,7 +259,7 @@ def test_dca_buying(default_conf_usdt, ticker_usdt, fee, mocker) -> None:
assert trade.amount == trade.orders[0].amount + trade.orders[1].amount
assert trade.nr_of_successful_buys() == 2
assert trade.nr_of_successful_buys == 2
# Sell
patch_get_signal(freqtrade, value=(False, True, None, None))
@@ -273,4 +273,4 @@ def test_dca_buying(default_conf_usdt, ticker_usdt, fee, mocker) -> None:
assert trade.orders[-1].side == 'sell'
assert trade.orders[2].amount == trade.amount
assert trade.nr_of_successful_buys() == 2
assert trade.nr_of_successful_buys == 2