simplify token string
MODIFY
tests/conftest.py
tests/conftest.py
@@ -163,7 +163,7 @@ def netcdf_http_paths(netcdf_local_paths, request):
@pytest.fixture(scope="session")
def netcdf_http_paths_with_secrets(netcdf_http_paths):
all_urls, items_per_file = netcdf_http_paths
- all_urls = [url + "?a-pretend-api-token" for url in all_urls]
+ all_urls = [url + "?token=bar" for url in all_urls]
return all_urls, items_per_file

MODIFY
tests/test_storage.py
tests/test_storage.py
@@ -64,7 +64,7 @@ def test_file_opener(
all_paths, _ = file_paths
path = str(all_paths[0])
cache = tmp_cache if use_cache else None
- secrets = "?a-pretend-api-token" if "?a-pretend-api-token" in file_paths[0] else None
+ secrets = "token=bar" if "?" in file_paths[0] else None
def do_actual_test():
if cache_first:

simplify token string