Add tests and test-strategies for custom "implements" requirements

This commit is contained in:
Matthias
2022-03-12 10:05:16 +01:00
parent 9460fd8d75
commit 6946203a7c
3 changed files with 43 additions and 1 deletions

View File

@@ -227,7 +227,7 @@ class StrategyResolver(IResolver):
if type(strategy).populate_exit_trend == IStrategy.populate_exit_trend:
raise OperationalException("`populate_exit_trend` must be implemented.")
else:
# TODO: Implementing buy_trend and sell_trend should raise a deprecation.
if (type(strategy).populate_buy_trend == IStrategy.populate_buy_trend
and type(strategy).populate_entry_trend == IStrategy.populate_entry_trend):
raise OperationalException(