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

@@ -0,0 +1,16 @@
# The strategy which fails to load due to non-existent dependency
from pandas import DataFrame
from freqtrade.strategy.interface import IStrategy
class TestStrategyNoImplements(IStrategy):
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
return super().populate_indicators(dataframe, metadata)
class TestStrategyNoImplementSell(TestStrategyNoImplements):
def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
return super().populate_entry_trend(dataframe, metadata)