From ddc203ca690d71568645d9b8231bd48f59b41d3d Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Sun, 19 Sep 2021 02:26:59 -0600 Subject: [PATCH] remove %s in test_exchange unix time --- tests/exchange/test_exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/exchange/test_exchange.py b/tests/exchange/test_exchange.py index 561a9cec5..bd0994c18 100644 --- a/tests/exchange/test_exchange.py +++ b/tests/exchange/test_exchange.py @@ -3020,7 +3020,7 @@ def test_get_funding_fees(default_conf, mocker, exchange_name): # mocker.patch('freqtrade.exchange.Exchange.get_funding_fees', lambda pair, since: y) exchange = get_patched_exchange(mocker, default_conf, api_mock, id=exchange_name) date_time = datetime.strptime("2021-09-01T00:00:01.000Z", '%Y-%m-%dT%H:%M:%S.%fZ') - unix_time = int(date_time.strftime('%s')) + unix_time = int(date_time.timestamp()) expected_fees = -0.001 # 0.14542341 + -0.14642341 fees_from_datetime = exchange.get_funding_fees_from_exchange( pair='XRP/USDT',