From 2815d31f960d5e32181fd980f4e170abec5b3e57 Mon Sep 17 00:00:00 2001 From: veenstrajelmer Date: Tue, 23 Jan 2024 14:14:54 +0100 Subject: [PATCH] remaining files --- tests/test_xugrid_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_xugrid_helpers.py b/tests/test_xugrid_helpers.py index a637b5aab..dbf59b9ce 100644 --- a/tests/test_xugrid_helpers.py +++ b/tests/test_xugrid_helpers.py @@ -30,13 +30,13 @@ def test_remove_unassociated_edges(): @pytest.mark.unittest -def test_remove_nan_fillvalue_attrs(): +def test_remove_nan_fillvalue_attrs(tmp_path): """ xarray writes {"_FillValue": np.nan} to encoding for variables without _FillValue attribute. This test checks if that is still the case and checks if dfmt.open_partitioned_dataset removes them. """ file_nc = dfmt.data.fm_curvedbend_map(return_filepath=True) - file_out = "temp_fillvals_map.nc" + file_out = tmp_path / "temp_fillvals_map.nc" ds_org = xr.open_dataset(file_nc) ds_org.to_netcdf(file_out)