diff --git a/icechunk-python/tests/test_credentials.py b/icechunk-python/tests/test_credentials.py index 97156767..e598d7d5 100644 --- a/icechunk-python/tests/test_credentials.py +++ b/icechunk-python/tests/test_credentials.py @@ -8,7 +8,6 @@ S3Options, S3StaticCredentials, Storage, - gcs_storage, s3_refreshable_credentials, s3_storage, ) @@ -137,25 +136,3 @@ def test_s3_refreshable_credentials_refresh(tmp_path: Path) -> None: assert not Repository.exists(st) assert not Repository.exists(st) assert path.read_text() == "..." - - -def test_gcs_refreshable_credentials_refresh(tmp_path: Path) -> None: - path = tmp_path / "calls.txt" - creds_obj = ExpirableCredentials(path) - - st = gcs_storage( - bucket="testbucket", - prefix="this-repo-does-not-exist", - get_credentials=creds_obj, - ) - - # credentials expire immediately so refresh function keeps getting called - assert not Repository.exists(st) - assert not Repository.exists(st) - assert not Repository.exists(st) - assert path.read_text() == "..." - - # after three times credentials don't expire, so the file doesn't change - assert not Repository.exists(st) - assert not Repository.exists(st) - assert path.read_text() == "..."