@@ -1105,20 +1105,20 @@ def test_write_compressed_parquet_wrong_compression_level(
11051105        )
11061106
11071107
1108- # test write_parquet with zstd, brotli default compression level, should complete without error 
1109- @pytest .mark .parametrize ("compression" , ["zstd" , "brotli" ]) 
1110- def  test_write_compressed_parquet_default_compression_level (df , tmp_path , compression ):
1108+ @pytest .mark .parametrize ("compression" , ["wrong" ]) 
1109+ def  test_write_compressed_parquet_invalid_compression (df , tmp_path , compression ):
11111110    path  =  tmp_path 
11121111
1113-     df .write_parquet (str (path ), compression = compression )
1112+     with  pytest .raises (ValueError ):
1113+         df .write_parquet (str (path ), compression = compression )
11141114
11151115
1116- @pytest .mark .parametrize ("compression" , ["wrong" ]) 
1117- def  test_write_compressed_parquet_missing_compression_level (df , tmp_path , compression ):
1116+ # test write_parquet with zstd, brotli default compression level, should complete without error 
1117+ @pytest .mark .parametrize ("compression" , ["zstd" , "brotli" ]) 
1118+ def  test_write_compressed_parquet_default_compression_level (df , tmp_path , compression ):
11181119    path  =  tmp_path 
11191120
1120-     with  pytest .raises (ValueError ):
1121-         df .write_parquet (str (path ), compression = compression )
1121+     df .write_parquet (str (path ), compression = compression )
11221122
11231123
11241124def  test_dataframe_export (df ) ->  None :
0 commit comments