test: tests should consider additional ff-update call

This commit is contained in:
Matthias 2024-09-07 09:25:20 +02:00
parent 1b00f512c1
commit f95cc960e1

View File

@ -941,7 +941,7 @@ def test_backtest_one_detail(default_conf_usdt, mocker, testdatadir, use_detail)
"use_detail,exp_funding_fee, exp_ff_updates",
[
(True, -0.018054162, 11),
(False, -0.01780296, 5),
(False, -0.01780296, 6),
],
)
def test_backtest_one_detail_futures(
@ -1051,8 +1051,8 @@ def test_backtest_one_detail_futures(
@pytest.mark.parametrize(
"use_detail,entries,max_stake,ff_updates,expected_ff",
[
(True, 50, 3000, 54, -1.18038144),
(False, 6, 360, 10, -0.14679994),
(True, 50, 3000, 55, -1.18038144),
(False, 6, 360, 11, -0.14679994),
],
)
def test_backtest_one_detail_futures_funding_fees(