From 5693039f0d683e7bc6bf009d72c69873b07195d1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 7 Oct 2024 20:33:08 +0200 Subject: [PATCH] tests: Add test-column to ensure string columns won't regress --- tests/strategy/strats/strategy_test_v3_recursive_issue.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/strategy/strats/strategy_test_v3_recursive_issue.py b/tests/strategy/strats/strategy_test_v3_recursive_issue.py index d03486886..e709d7ad4 100644 --- a/tests/strategy/strats/strategy_test_v3_recursive_issue.py +++ b/tests/strategy/strats/strategy_test_v3_recursive_issue.py @@ -33,6 +33,9 @@ class strategy_test_v3_recursive_issue(IStrategy): # Has both bias1 and bias2 dataframe["rsi_lookahead"] = ta.RSI(dataframe, timeperiod=50).shift(-1) + # String columns shouldn't cause issues + dataframe["test_string_column"] = f"a{len(dataframe)}" + return dataframe def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: