def __init__(self, rules, whitelist=[], safe_mode=True): """ :param rules: A list of rules to evaluate :param safe_mode: If set to True, allow the query in case it can not be parsed :return: """ self.parser = QueryParser() self.guard = Guard(rules) self.sanitizer = Sanitizer() self.whitelist = whitelist self.safe_mode = safe_mode
def setUp(self): self.parser = QueryParser()
def setUp(self): self.parser = QueryParser() self.too_many_datapoints = too_many_datapoints.RuleChecker()
def setUp(self): self.parser = QueryParser() self.query_old_data = query_old_data.RuleChecker()
def setUp(self): self.parser = QueryParser() self.default_resolution = Resolution.MAX_RESOLUTION
def setUp(self): self.parser = QueryParser() self.negative_groupby_statement = negative_groupby_statement.RuleChecker( )