From 09f0e7149f53986fbd6050ab87bbe79303737d58 Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Wed, 2 Feb 2022 12:42:13 -0600 Subject: [PATCH] test__fetch_and_calculate_funding_fees_datetime_called # TODO-lev: test for longs --- tests/exchange/test_exchange.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/exchange/test_exchange.py b/tests/exchange/test_exchange.py index ae94ae102..69081bd83 100644 --- a/tests/exchange/test_exchange.py +++ b/tests/exchange/test_exchange.py @@ -3774,6 +3774,8 @@ def test__fetch_and_calculate_funding_fees_datetime_called( # TODO-lev: test this for longs funding_fees = exchange._fetch_and_calculate_funding_fees('ADA/USDT', 30.0, True, d1) assert funding_fees == expected_fees + funding_fees = exchange._fetch_and_calculate_funding_fees('ADA/USDT', 30.0, False, d1) + assert funding_fees == 0 - expected_fees @pytest.mark.parametrize('pair,expected_size,trading_mode', [