From e967dfa145a025cf5d4a865024807c8dad5c48db Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 14 Jan 2024 13:58:06 +0100 Subject: [PATCH] Adjust api test after column expansion --- tests/rpc/test_rpc_apiserver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/rpc/test_rpc_apiserver.py b/tests/rpc/test_rpc_apiserver.py index 9957ebdb0..81d01acad 100644 --- a/tests/rpc/test_rpc_apiserver.py +++ b/tests/rpc/test_rpc_apiserver.py @@ -1603,9 +1603,9 @@ def test_api_pair_history(botclient, mocker): assert 'data' in result data = result['data'] assert len(data) == 289 - # analyed DF has 28 columns - assert len(result['columns']) == 28 - assert len(data[0]) == 28 + # analyed DF has 30 columns + assert len(result['columns']) == 30 + assert len(data[0]) == 30 date_col_idx = [idx for idx, c in enumerate(result['columns']) if c == 'date'][0] rsi_col_idx = [idx for idx, c in enumerate(result['columns']) if c == 'rsi'][0]