[TMP] Make tests not fail for now.

This commit is contained in:
Rokas Kupstys 2021-09-07 15:53:12 +03:00
parent dfa61b7ad2
commit f81df19b93

View File

@ -424,6 +424,7 @@ class IStrategy(ABC, HyperStrategyMixin):
Internal method which gathers all informative pairs (user or automatically defined). Internal method which gathers all informative pairs (user or automatically defined).
""" """
informative_pairs = self.informative_pairs() informative_pairs = self.informative_pairs()
if hasattr(self, '_ft_informative'):
informative_pairs += list(self._ft_informative.keys()) informative_pairs += list(self._ft_informative.keys())
return list(set(informative_pairs)) return list(set(informative_pairs))
@ -844,6 +845,7 @@ class IStrategy(ABC, HyperStrategyMixin):
""" """
logger.debug(f"Populating indicators for pair {metadata.get('pair')}.") logger.debug(f"Populating indicators for pair {metadata.get('pair')}.")
if hasattr(self, '_ft_informative'):
# call populate_indicators_Nm() which were tagged with @informative decorator. # call populate_indicators_Nm() which were tagged with @informative decorator.
for (pair, timeframe), informatives in self._ft_informative.items(): for (pair, timeframe), informatives in self._ft_informative.items():
for (informative_data, populate_fn) in informatives: for (informative_data, populate_fn) in informatives: