Skip to content

Commit

Permalink
Reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
MoessnerFabian(Group) committed Jan 22, 2025
1 parent 2f8e4e0 commit 89606b1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/unit/filter/test_lucene_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,22 +503,16 @@ def test_new_lucene_compliance_parentheses(self):

assert lucene_filter == RegExFilterExpression(["regex_key_one"], ".*value.*")


def test_creates_lucene_compliance_filter_parentheses_or_both_regex(self):
lucene_filter = LuceneFilter.create(
'regex_key_one: (/.*value_one.*/ OR /.*value_two.*/)'
)
lucene_filter = LuceneFilter.create("regex_key_one: (/.*value_one.*/ OR /.*value_two.*/)")

assert lucene_filter == Or(
RegExFilterExpression(["regex_key_one"], ".*value_one.*"),
RegExFilterExpression(["regex_key_one"], ".*value_two.*"),
)


def test_creates_lucene_compliance_filter_parentheses_or_one_regex(self):
lucene_filter = LuceneFilter.create(
'regex_key_one: (/.*value_one.*/ OR "/.*value_two.*/")'
)
lucene_filter = LuceneFilter.create('regex_key_one: (/.*value_one.*/ OR "/.*value_two.*/")')

assert lucene_filter == Or(
RegExFilterExpression(["regex_key_one"], ".*value_one.*"),
Expand Down

0 comments on commit 89606b1

Please sign in to comment.