feat: Allow strategies to not define enter_long

This commit is contained in:
Matthias
2024-10-07 20:28:24 +02:00
parent fe8eabda37
commit 52304b37a2
2 changed files with 2 additions and 11 deletions

View File

@@ -296,13 +296,6 @@ def test_assert_df(ohlcv_history, caplog):
ohlcv_history.loc[df_len, "close"],
ohlcv_history.loc[0, "date"],
)
with pytest.raises(StrategyError, match="enter_long/buy column not set."):
_STRATEGY.assert_df(
ohlcv_history.drop("enter_long", axis=1),
len(ohlcv_history),
ohlcv_history.loc[df_len, "close"],
ohlcv_history.loc[0, "date"],
)
_STRATEGY.disable_dataframe_checks = True
caplog.clear()