Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseynield committed Feb 24, 2025
1 parent b1175a5 commit 4db1d00
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions icechunk-python/tests/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
S3Options,
S3StaticCredentials,
Storage,
gcs_storage,
s3_refreshable_credentials,
s3_storage,
)
Expand Down Expand Up @@ -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() == "..."

0 comments on commit 4db1d00

Please sign in to comment.