add test for multiple params in query string
MODIFY
tests/conftest.py
tests/conftest.py
@@ -167,6 +167,13 @@ def netcdf_http_paths_with_secrets(netcdf_http_paths):
return all_urls, items_per_file
+@pytest.fixture(scope="session")
+def netcdf_http_paths_with_multiparam_secrets(netcdf_http_paths):
+ all_urls, items_per_file = netcdf_http_paths
+ all_urls = [url + "?filename=foo.nc&token=bar" for url in all_urls]
+ return all_urls, items_per_file
+
+
@pytest.fixture()
def tmp_target(tmpdir_factory):
fs = fsspec.get_filesystem_class("file")()

MODIFY
tests/test_storage.py
tests/test_storage.py
@@ -45,6 +45,7 @@ def test_metadata_target(tmp_metadata_target):
lazy_fixture("netcdf_local_paths"),
lazy_fixture("netcdf_http_paths"),
lazy_fixture("netcdf_http_paths_with_secrets"),
+ lazy_fixture("netcdf_http_paths_with_multiparam_secrets"),
],
)
@pytest.mark.parametrize("copy_to_local", [False, True])

add test for multiple params in query string