def __init__(self, config, crypto_currency, dispatchers_list, relevant_evaluators=None): if relevant_evaluators is None: relevant_evaluators = CONFIG_EVALUATORS_WILDCARD self.config = config self.crypto_currency = crypto_currency self.dispatchers_list = dispatchers_list self.symbol_evaluator_list = {} if Backtesting.enabled(self.config): self.social_eval_list = [] self.social_not_tasked_list = [] else: self.social_eval_list = EvaluatorCreator.create_social_eval( self.config, self.crypto_currency, self.dispatchers_list, relevant_evaluators) self.social_not_tasked_list = EvaluatorCreator.create_social_not_tasked_list( self.social_eval_list) self.social_evaluator_refresh_task = SocialEvaluatorNotTaskedUpdateTask( self.social_not_tasked_list)
def test_create_social_not_tasked_list(): evaluator, config = _get_tools() so_list = EvaluatorCreator.create_social_eval(config, evaluator.symbol, [], CONFIG_EVALUATORS_WILDCARD) not_tasked_so_list = EvaluatorCreator.create_social_not_tasked_list( so_list) for evalator in not_tasked_so_list: assert not evalator.is_to_be_independently_tasked