Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MoessnerFabian(Group) authored and Jörg Zimmermann committed Jan 3, 2025
1 parent 028056e commit 71a721d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/processor/labeler/test_labeler_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,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)
Expand All @@ -228,7 +228,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)
Expand All @@ -245,7 +245,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"]}},
}
Expand All @@ -257,7 +257,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"]}},
}
Expand Down

0 comments on commit 71a721d

Please sign in to comment.