@@ -36,17 +36,21 @@ def test_open_dataset(gridpath, datasetpath, mesh_constants):
3636 nt .assert_equal (len (uxds_var2_ne30 .uxgrid ._ds .data_vars ), mesh_constants ['DATAVARS_outCSne30' ])
3737 nt .assert_equal (uxds_var2_ne30 .source_datasets , str (data_path ))
3838
39- def test_open_mf_dataset (gridpath , test_data_dir , mesh_constants ):
39+ def test_open_mf_dataset (gridpath , datasetpath , mesh_constants ):
4040 """Loads multiple datasets with their grid topology file using
4141 uxarray's open_dataset call."""
4242
4343 grid_path = gridpath ("ugrid" , "outCSne30" , "outCSne30.ug" )
44- dsfiles_mf_ne30 = str (test_data_dir ) + "/ugrid/outCSne30/outCSne30_v*.nc"
44+ dsfiles_mf_ne30 = datasetpath (
45+ "ugrid" ,
46+ "outCSne30" ,
47+ ["outCSne30_var2.nc" , "outCSne30_vortex.nc" ],
48+ )
4549 uxds_mf_ne30 = ux .open_mfdataset (grid_path , dsfiles_mf_ne30 )
4650
4751 nt .assert_equal (uxds_mf_ne30 .uxgrid .node_lon .size , mesh_constants ['NNODES_outCSne30' ])
4852 nt .assert_equal (len (uxds_mf_ne30 .uxgrid ._ds .data_vars ), mesh_constants ['DATAVARS_outCSne30' ])
49- nt .assert_equal (uxds_mf_ne30 .source_datasets , dsfiles_mf_ne30 )
53+ nt .assert_equal (uxds_mf_ne30 .source_datasets , str ( dsfiles_mf_ne30 ) )
5054
5155def test_open_grid (gridpath , mesh_constants ):
5256 """Loads only a grid topology file using uxarray's open_grid call."""
0 commit comments