complete reversion of local fixture name
MODIFY
tests/conftest.py
tests/conftest.py
@@ -100,7 +100,7 @@ def make_file_pattern(path_fixture):
Parameters
----------
path_fixture : callable
- One of `netcdf_paths` or `netcdf_http_paths`
+ One of `netcdf_local_paths` or `netcdf_http_paths`
"""
paths, items_per_file, fnames_by_variable, path_format, kwargs = path_fixture
@@ -153,8 +153,8 @@ def netcdf_local_paths(daily_xarray_dataset, tmpdir_factory, items_per_file, fil
@pytest.fixture(scope="session")
-def netcdf_local_file_pattern(netcdf_paths):
- return make_file_pattern(netcdf_paths)
+def netcdf_local_file_pattern(netcdf_local_paths):
+ return make_file_pattern(netcdf_local_paths)
@pytest.fixture(scope="session")
@@ -200,8 +200,8 @@ def start_http_server(paths, request, username=None, password=None, required_que
dict(required_query_string="foo=foo&bar=bar"),
],
)
-def netcdf_http_paths(netcdf_paths, request):
- paths, items_per_file, fnames_by_variable, _, kwargs = netcdf_paths
+def netcdf_http_paths(netcdf_local_paths, request):
+ paths, items_per_file, fnames_by_variable, _, kwargs = netcdf_local_paths
url = start_http_server(paths, request, **request.param)
path_format = url + "/{variable}_{time:03d}.nc" if fnames_by_variable else None

MODIFY
tests/test_fixtures.py
tests/test_fixtures.py
@@ -5,8 +5,8 @@ import xarray as xr
from pangeo_forge_recipes.utils import fix_scalar_attr_encoding
-def test_fixture_local_files(daily_xarray_dataset, netcdf_paths):
- paths = netcdf_paths[0]
+def test_fixture_local_files(daily_xarray_dataset, netcdf_local_paths):
+ paths = netcdf_local_paths[0]
paths = [str(path) for path in paths]
ds = xr.open_mfdataset(paths, combine="by_coords", concat_dim="time", engine="h5netcdf")
assert ds.identical(daily_xarray_dataset)

MODIFY
tests/test_storage.py
tests/test_storage.py
@@ -40,7 +40,7 @@ def test_metadata_target(tmp_metadata_target):
@pytest.mark.parametrize(
- "file_paths", [lazy_fixture("netcdf_paths"), lazy_fixture("netcdf_http_paths")],
+ "file_paths", [lazy_fixture("netcdf_local_paths"), lazy_fixture("netcdf_http_paths")],
)
@pytest.mark.parametrize("copy_to_local", [False, True])
@pytest.mark.parametrize("use_cache, cache_first", [(False, False), (True, False), (True, True)])

complete reversion of local fixture name