diff --git a/tests/unit/processor/labeler/test_labeler_rule.py b/tests/unit/processor/labeler/test_labeler_rule.py index 1b461ac28..3b98058a9 100644 --- a/tests/unit/processor/labeler/test_labeler_rule.py +++ b/tests/unit/processor/labeler/test_labeler_rule.py @@ -217,7 +217,7 @@ def test_null_returns_true_for_matching_document(self): def test_lucene_regex_matches_returns_true_for_matching_document(self): rule_definition = { - "filter": 'applyrule: /.*yes.*/', + "filter": "applyrule: /.*yes.*/", "labeler": {"label": {"reporter": ["windows"]}}, } rule = LabelerRule._create_from_dict(rule_definition) @@ -227,7 +227,7 @@ def test_lucene_regex_matches_returns_true_for_matching_document(self): def test_lucene_regex_matches_returns_false_for_non_matching_document(self): rule_definition = { - "filter": 'applyrule: /.*yes.*/', + "filter": "applyrule: /.*yes.*/", "labeler": {"label": {"reporter": ["windows"]}}, } rule = LabelerRule._create_from_dict(rule_definition) @@ -244,7 +244,7 @@ def test_lucene_regex_matches_returns_false_for_non_matching_document(self): def test_complex_lucene_regex_matches_returns_true_for_matching_document(self): rule_definition = { - "filter": r'applyrule: /(?:(?=.*[a-z])(?:(?=.*[A-Z])(?=.*[\d\W])|(?=.*\W)(?=.*\d))|(?=.*\W)(?=.*[A-Z])(?=.*\d)).{8,}/', + "filter": r"applyrule: /(?:(?=.*[a-z])(?:(?=.*[A-Z])(?=.*[\d\W])|(?=.*\W)(?=.*\d))|(?=.*\W)(?=.*[A-Z])(?=.*\d)).{8,}/", # pylint: disable=line-too-long "labeler": {"label": {"reporter": ["windows"]}}, } @@ -256,7 +256,7 @@ def test_complex_lucene_regex_matches_returns_true_for_matching_document(self): def test_complex_lucene_regex_does_not_match_returns_true_for_matching_document(self): rule_definition = { - "filter": r'applyrule: /(?:(?=.*[a-z])(?:(?=.*[A-Z])(?=.*[\d\W])|(?=.*\W)(?=.*\d))|(?=.*\W)(?=.*[A-Z])(?=.*\d)).{8,}/', + "filter": r"applyrule: /(?:(?=.*[a-z])(?:(?=.*[A-Z])(?=.*[\d\W])|(?=.*\W)(?=.*\d))|(?=.*\W)(?=.*[A-Z])(?=.*\d)).{8,}/", # pylint: disable=line-too-long "labeler": {"label": {"reporter": ["windows"]}}, }