Skip to content

Commit

Permalink
Fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
ppcad committed Dec 17, 2024
1 parent d4f3304 commit 91082e7
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 33 deletions.
4 changes: 1 addition & 3 deletions tests/unit/processor/concatenator/test_concatenator_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ class TestConcatenatorRule:
),
],
)
def test_rules_equality(
self, rule_definition, testcase, other_rule_definition, is_equal
):
def test_rules_equality(self, rule_definition, testcase, other_rule_definition, is_equal):
rule_1 = ConcatenatorRule._create_from_dict(rule_definition)
rule_2 = ConcatenatorRule._create_from_dict(other_rule_definition)
assert (rule_1 == rule_2) == is_equal, testcase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ class TestDatetimeExtractorRule:
),
],
)
def test_rules_equality(
self, rule_definition, testcase, other_rule_definition, is_equal
):
def test_rules_equality(self, rule_definition, testcase, other_rule_definition, is_equal):
rule_1 = DatetimeExtractorRule._create_from_dict(rule_definition)
rule_2 = DatetimeExtractorRule._create_from_dict(other_rule_definition)
assert (rule_1 == rule_2) == is_equal, testcase
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/processor/deleter/test_deleter_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ class TestDeleterRule:
),
],
)
def test_rules_equality(
self, rule_definition, testcase, other_rule_definition, is_equal
):
def test_rules_equality(self, rule_definition, testcase, other_rule_definition, is_equal):
rule1 = DeleterRule._create_from_dict(
rule_definition,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ class TestDomainLabelExtractorRule:
),
],
)
def test_rules_equality(
self, rule_definition, testcase, other_rule_definition, is_equal
):
def test_rules_equality(self, rule_definition, testcase, other_rule_definition, is_equal):
rule_1 = DomainLabelExtractorRule._create_from_dict(rule_definition)
rule_2 = DomainLabelExtractorRule._create_from_dict(other_rule_definition)
assert (rule_1 == rule_2) == is_equal, testcase
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/processor/dropper/test_dropper_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ def test_rule_has_fields_to_drop(self, rule_definition):
),
],
)
def test_rules_equality(
self, rule_definition, testcase, other_rule_definition, is_equal
):
def test_rules_equality(self, rule_definition, testcase, other_rule_definition, is_equal):
rule1 = DropperRule._create_from_dict(
rule_definition,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ class TestGenericResolverRule:
),
],
)
def test_rules_equality(
self, rule_definition, testcase, other_rule_definition, is_equal
):
def test_rules_equality(self, rule_definition, testcase, other_rule_definition, is_equal):
rule1 = GenericResolverRule._create_from_dict(rule_definition)
rule2 = GenericResolverRule._create_from_dict(other_rule_definition)
assert (rule1 == rule2) == is_equal, testcase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ class TestListComparisonRule:
),
],
)
def test_rules_equality(
self, rule_definition, testcase, other_rule_definition, is_equal
):
def test_rules_equality(self, rule_definition, testcase, other_rule_definition, is_equal):
rule1 = GeoipEnricherRule._create_from_dict(rule_definition)
rule2 = GeoipEnricherRule._create_from_dict(other_rule_definition)
assert (rule1 == rule2) == is_equal, testcase
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ class TestListComparisonRule:
),
],
)
def test_rules_equality(
self, rule_definition, testcase, other_rule_definition, is_equal
):
def test_rules_equality(self, rule_definition, testcase, other_rule_definition, is_equal):
rule1 = ListComparisonRule._create_from_dict(rule_definition)
rule2 = ListComparisonRule._create_from_dict(other_rule_definition)
assert (rule1 == rule2) == is_equal, testcase
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/processor/pre_detector/test_pre_detector_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ class TestPreDetectorRule:
),
],
)
def test_rules_equality(
self, rule_definition, testcase, other_rule_definition, is_equal
):
def test_rules_equality(self, rule_definition, testcase, other_rule_definition, is_equal):
rule1 = PreDetectorRule._create_from_dict(rule_definition)
rule2 = PreDetectorRule._create_from_dict(other_rule_definition)
assert (rule1 == rule2) == is_equal, testcase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ def test_create_from_dict_validates_config(self, rule, error, message):
),
],
)
def test_rules_equality(
self, rule_definition, testcase, other_rule_definition, is_equal
):
def test_rules_equality(self, rule_definition, testcase, other_rule_definition, is_equal):
rule_1 = PseudonymizerRule._create_from_dict(rule_definition)
rule_2 = PseudonymizerRule._create_from_dict(other_rule_definition)
assert (rule_1 == rule_2) == is_equal, testcase
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ def test_rule_has_fields_from_directory_path(self, _):
),
],
)
def test_rules_equality(
self, rule_definition, testcase, other_rule_definition, is_equal
):
def test_rules_equality(self, rule_definition, testcase, other_rule_definition, is_equal):
with mock.patch("pathlib.Path.is_file", return_value=True):
read_lines = other_rule_definition.get("selective_extractor").get("extract_from_file")
if read_lines is not None:
Expand Down

0 comments on commit 91082e7

Please sign in to comment.