Skip to content

Commit

Permalink
Linting w/ Black
Browse files Browse the repository at this point in the history
  • Loading branch information
sifex committed Feb 16, 2025
1 parent 64abfbb commit 714d073
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,19 +323,21 @@ def test_regression_github_issue_321(rule_collection, test_backend, sigma_filter
"not (((filter)))",
],
)
def test_regression_github_issue_321_brackets(rule_collection, test_backend, sigma_filter, filter_condition):
def test_regression_github_issue_321_brackets(
rule_collection, test_backend, sigma_filter, filter_condition
):
sigma_filter.filter = SigmaGlobalFilter.from_dict(
{
"rules": [
"6f3e2987-db24-4c78-a860-b4f4095a7095",
],
"filter": {"User|startswith": "adm_"},
"condition": filter_condition
"condition": filter_condition,
}
)

rule_collection.rules += [sigma_filter]

assert test_backend.convert(rule_collection) == [
'(EventID=4625 or EventID2=4624) and not User startswith "adm_"'
]
]

0 comments on commit 714d073

Please sign in to comment.