diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index ab2626ee7..c021da231 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -4779,5 +4779,9 @@ def test_update_funding_fees(mocker, default_conf, time_machine, fee): trades = Trade.get_open_trades() for trade in trades: - assert trade.funding_fees == 123 * mark_prices[trade.pair] * funding_rates[trade.pair] + assert trade.funding_fees == sum([ + 123 * + mark_prices[trade.pair][time] * + funding_rates[trade.pair][time] for time in mark_prices[trade.pair].keys() + ]) return