1818 _to_marimo_json ,
1919 register_transformers ,
2020)
21- from tests ._data .mocks import create_dataframes
21+ from tests ._data .mocks import DFType , create_dataframes
2222
2323HAS_DEPS = DependencyManager .pandas .has () and DependencyManager .altair .has ()
2424
3030@pytest .mark .parametrize (
3131 "df" ,
3232 create_dataframes (
33- {"A" : [1 , 2 , 3 ], "B" : ["a" , "b" , "c" ]}, exclude = [ "duckdb" ]
33+ {"A" : [1 , 2 , 3 ], "B" : ["a" , "b" , "c" ]},
3434 ),
3535)
3636def test_to_marimo_json (df : IntoDataFrame ):
@@ -46,7 +46,7 @@ def test_to_marimo_json(df: IntoDataFrame):
4646@pytest .mark .parametrize (
4747 "df" ,
4848 create_dataframes (
49- {"A" : [1 , 2 , 3 ], "B" : ["a" , "b" , "c" ]}, exclude = [ "duckdb" ]
49+ {"A" : [1 , 2 , 3 ], "B" : ["a" , "b" , "c" ]},
5050 ),
5151)
5252def test_to_marimo_csv (df : IntoDataFrame ):
@@ -62,7 +62,7 @@ def test_to_marimo_csv(df: IntoDataFrame):
6262@pytest .mark .parametrize (
6363 "df" ,
6464 create_dataframes (
65- {"A" : [1 , 2 , 3 ], "B" : ["a" , "b" , "c" ]}, exclude = [ "duckdb" ]
65+ {"A" : [1 , 2 , 3 ], "B" : ["a" , "b" , "c" ]},
6666 ),
6767)
6868def test_to_marimo_inline_csv (df : IntoDataFrame ):
@@ -79,7 +79,7 @@ def test_to_marimo_inline_csv(df: IntoDataFrame):
7979@pytest .mark .parametrize (
8080 "df" ,
8181 create_dataframes (
82- {"A" : [1 , 2 , 3 ], "B" : ["a" , "b" , "c" ]}, exclude = [ "duckdb" ]
82+ {"A" : [1 , 2 , 3 ], "B" : ["a" , "b" , "c" ]},
8383 ),
8484)
8585def test_data_to_json_string (df : IntoDataFrame ):
@@ -95,9 +95,7 @@ def test_data_to_json_string(df: IntoDataFrame):
9595@pytest .mark .parametrize (
9696 "df" ,
9797 # We skip pyarrow because it's csv is formatted differently
98- create_dataframes (
99- {"A" : [1 , 2 , 3 ], "B" : ["a" , "b" , "c" ]}, exclude = ["pyarrow" , "duckdb" ]
100- ),
98+ create_dataframes ({"A" : [1 , 2 , 3 ], "B" : ["a" , "b" , "c" ]}),
10199)
102100def test_data_to_csv_string (df : IntoDataFrame ):
103101 result = _data_to_csv_string (df )
@@ -146,7 +144,6 @@ def test_to_marimo_csv_with_missing_values(df: IntoDataFrame):
146144 "df" ,
147145 create_dataframes (
148146 {"A" : range (10000 ), "B" : [f"value_{ i } " for i in range (10000 )]},
149- exclude = ["pyarrow" , "duckdb" ],
150147 ),
151148)
152149def test_to_marimo_inline_csv_large_dataset (df : IntoDataFrame ):
@@ -229,7 +226,7 @@ def test_register_transformers(mock_data_transformers: MagicMock):
229226 )
230227
231228
232- SUPPORTS_ARROW_IPC = ["pandas" , "polars" , "lazy-polars" ]
229+ SUPPORTS_ARROW_IPC : list [ DFType ] = ["pandas" , "polars" , "lazy-polars" ]
233230
234231
235232@pytest .mark .skipif (not HAS_DEPS , reason = "optional dependencies not installed" )
0 commit comments