correct & simplify additions to test_storage.py
@@ -51,23 +51,20 @@ def test_metadata_target(tmp_metadata_target):
@pytest.mark.parametrize("use_cache, cache_first", [(False, False), (True, False), (True, True)])
@pytest.mark.parametrize("use_dask", [True, False])
@pytest.mark.parametrize("use_xarray", [True, False])
-@pytest.mark.parametrize("use_query_string_secrets", [True, False])
def test_file_opener(
file_paths,
tmp_cache,
- fake_secrets,
copy_to_local,
use_cache,
cache_first,
dask_cluster,
use_dask,
use_xarray,
- use_query_string_secrets,
):
all_paths, _ = file_paths
path = str(all_paths[0])
cache = tmp_cache if use_cache else None
- secrets = fake_secrets if use_query_string_secrets and file_paths[0][-1] == "?" else None
+ secrets = "?a-pretend-api-token" if "?a-pretend-api-token" in file_paths[0] else None
def do_actual_test():
if cache_first:
