From 4db1d004403a327634ff8aaff44b6e5a28b35df3 Mon Sep 17 00:00:00 2001 From: lindseynield Date: Mon, 24 Feb 2025 10:45:56 -0700 Subject: [PATCH] remove test --- icechunk-python/tests/test_credentials.py | 23 ----------------------- 1 file changed, 23 deletions(-) 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() == "..."