A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
test: Fix polars test (#6952)
Dylan Madisetti303f43f69bb0
diff --git a/tests/_plugins/ui/_impl/tables/test_polars_table.py b/tests/_plugins/ui/_impl/tables/test_polars_table.pyindex 1ebeb1535c..1f80452b33 100644--- a/tests/_plugins/ui/_impl/tables/test_polars_table.py+++ b/tests/_plugins/ui/_impl/tables/test_polars_table.py@@ -983,8 +983,7 @@ class TestPolarsTableManagerFactory(unittest.TestCase):data.write_json()- def test_to_json_enum_list_not_supported(self) -> None:- # When this is supported, we can remove the casting to string+ def test_to_json_enum_list_supported(self) -> None:import polars as pldata = {"A": [["A", "B", "C"], ["A", "B", "C"], ["A", "B", "C"]]}@@ -992,9 +991,7 @@ class TestPolarsTableManagerFactory(unittest.TestCase):data_enum = pl.DataFrame(data, schema={"A": pl.List(pl.Enum(categories=["A", "B", "C"]))})- with pytest.raises(pl.exceptions.PanicException):- data_enum.write_json()+ data_enum.write_json()data_list = pl.DataFrame(data, schema={"A": pl.List(pl.Categorical())})- with pytest.raises(pl.exceptions.PanicException):- data_list.write_json()+ data_list.write_json()