From 07df4ff07a10a16c4aa712adf00d2100d732ce46 Mon Sep 17 00:00:00 2001 From: ugohuche Date: Fri, 14 Jun 2024 17:59:59 +0100 Subject: [PATCH] Ruff formatting --- tests/expr/str/contains_test.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/expr/str/contains_test.py b/tests/expr/str/contains_test.py index cb14fe825..e38c1be07 100644 --- a/tests/expr/str/contains_test.py +++ b/tests/expr/str/contains_test.py @@ -7,13 +7,12 @@ import narwhals as nw from tests.utils import compare_dicts -data = { - "pets": ["cat", "dog", "rabbit and parrot", "dove"] -} +data = {"pets": ["cat", "dog", "rabbit and parrot", "dove"]} df_pandas = pd.DataFrame(data) df_polars = pl.DataFrame(data) + @pytest.mark.parametrize("df_any", [df_pandas, df_polars]) def test_contains(df_any: Any) -> None: df = nw.from_native(df_any, eager_only=True) @@ -22,10 +21,10 @@ def test_contains(df_any: Any) -> None: ) expected = { "pets": ["cat", "dog", "rabbit and parrot", "dove"], - "case_insensitive_match": [False, False, True, True] + "case_insensitive_match": [False, False, True, True], } compare_dicts(result, expected) result = df.with_columns( case_insensitive_match=df["pets"].str.contains("(?i)parrot|Dove") ) - compare_dicts(result, expected) \ No newline at end of file + compare_dicts(result, expected)