conditional return for netcdf_http_paths
MODIFY
tests/conftest.py
tests/conftest.py
@@ -163,6 +163,10 @@ def netcdf_http_paths(netcdf_paths, request):
request.addfinalizer(teardown)
all_urls = ["/".join([url, str(fname)]) for fname in fnames]
+
+ if len(netcdf_paths) == 2:
+ return all_urls, items_per_file
+ else:
return all_urls, items_per_file, fnames_by_variable, path_format

conditional return for netcdf_http_paths