From 148e36200d3a7ac57daa7439136a2d8c91fec687 Mon Sep 17 00:00:00 2001 From: cmdlineluser <99486669+cmdlineluser@users.noreply.github.com> Date: Sat, 14 Oct 2023 19:27:21 +0100 Subject: [PATCH] ruff --- py-polars/tests/unit/sql/test_sql.py | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/py-polars/tests/unit/sql/test_sql.py b/py-polars/tests/unit/sql/test_sql.py index 44cfb92b550b..73faef160377 100644 --- a/py-polars/tests/unit/sql/test_sql.py +++ b/py-polars/tests/unit/sql/test_sql.py @@ -1210,6 +1210,7 @@ def test_sql_unary_ops_8890(match_float: bool) -> None: "d": [4, 4], } + def test_sql_date() -> None: df = pl.DataFrame( { @@ -1232,23 +1233,3 @@ def test_sql_date() -> None: assert pl.select( pl.sql_expr("""CAST(DATE('2023-03', '%Y-%m') as STRING)""") ).frame_equal(expected) - - -@pytest.mark.parametrize("match_float", [False, True]) -def test_sql_unary_ops_8890(match_float: bool) -> None: - with pl.SQLContext( - df=pl.DataFrame({"a": [-2, -1, 1, 2], "b": ["w", "x", "y", "z"]}), - ) as ctx: - in_values = "(-3.0, -1.0, +2.0, +4.0)" if match_float else "(-3, -1, +2, +4)" - res = ctx.execute( - f""" - SELECT *, -(3) as c, (+4) as d - FROM df WHERE a IN {in_values} - """ - ) - assert res.collect().to_dict(False) == { - "a": [-1, 2], - "b": ["x", "z"], - "c": [-3, -3], - "d": [4, 4], - }