Updated test_update_funding_fees to compile fine but the assertion is incorrect

This commit is contained in:
Sam Germain 2021-11-06 05:42:41 -06:00
parent 98b475a00b
commit fd63fa7dda

View File

@ -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