From 884083e2b180691c44ccee931d1f52af5b4d0b65 Mon Sep 17 00:00:00 2001 From: "MoessnerFabian(Group)" Date: Thu, 19 Dec 2024 13:26:53 +0100 Subject: [PATCH] Black formatting. --- tests/unit/filter/test_lucene_filter.py | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/tests/unit/filter/test_lucene_filter.py b/tests/unit/filter/test_lucene_filter.py index 460e25fd0..8ab949619 100644 --- a/tests/unit/filter/test_lucene_filter.py +++ b/tests/unit/filter/test_lucene_filter.py @@ -458,7 +458,7 @@ def test_create_filter_error(self, testcase, input_str, message): def test_creates_lucene_compliance_filter_two_matching_regex_keys_of_two(self): lucene_filter = LuceneFilter.create( - 'regex_key_one: /.*value.*/ AND regex_key_two: /.*value.*/', + "regex_key_one: /.*value.*/ AND regex_key_two: /.*value.*/", ) assert lucene_filter == And( @@ -474,9 +474,7 @@ def test_creates_StringFilter_not_Regex(self): assert lucene_filter == StringFilterExpression(["regex_key_one"], "/.*value.*/") def test_new_lucene_compliance(self): - lucene_filter = LuceneFilter.create( - 'regex_key_one:/.*value.*/' - ) + lucene_filter = LuceneFilter.create("regex_key_one:/.*value.*/") assert lucene_filter == RegExFilterExpression(["regex_key_one"], ".*value.*") @@ -485,19 +483,17 @@ def test_creates_lucene_compliance_filter_one_matching_one_missmatch_regex_key_o 'regex_key_one:/.*value.*/ AND key_two: "/.*value.*/"', ) - assert lucene_filter == And(RegExFilterExpression(["regex_key_one"], ".*value.*"), - StringFilterExpression(["key_two"], "/.*value.*/")) + assert lucene_filter == And( + RegExFilterExpression(["regex_key_one"], ".*value.*"), + StringFilterExpression(["key_two"], "/.*value.*/"), + ) def test_new_lucene_compliance_double_escape(self): - lucene_filter = LuceneFilter.create( - 'regex_key_one:/\\/.*value.*/' - ) + lucene_filter = LuceneFilter.create("regex_key_one:/\\/.*value.*/") assert lucene_filter == RegExFilterExpression(["regex_key_one"], "\/.*value.*") def test_new_lucene_compliance_single_escape(self): - lucene_filter = LuceneFilter.create( - 'regex_key_one:/\/.*value.*/' - ) + lucene_filter = LuceneFilter.create("regex_key_one:/\/.*value.*/") - assert lucene_filter == RegExFilterExpression(["regex_key_one"], "\/.*value.*") \ No newline at end of file + assert lucene_filter == RegExFilterExpression(["regex_key_one"], "\/.*value.*")