Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
romilbhardwaj committed Jul 26, 2024
1 parent 04b8ce1 commit a1c941e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -4896,14 +4896,13 @@ def test_private_bucket(self, private_bucket):
else:
private_bucket_name = urllib.parse.urlsplit(private_bucket).netloc
match_str = storage_lib._BUCKET_FAIL_TO_CONNECT_MESSAGE.format(
name=private_bucket_name)
name=private_bucket_name)
if store_type == 'https':
# Azure blob uses a different error string since container may
# not exist even though the bucket name is ok.
match_str = 'Attempted to fetch a non-existent public container'
with pytest.raises(
sky.exceptions.StorageBucketGetError,
match=match_str):
with pytest.raises(sky.exceptions.StorageBucketGetError,
match=match_str):
storage_obj = storage_lib.Storage(source=private_bucket)

@pytest.mark.no_fluidstack
Expand Down

0 comments on commit a1c941e

Please sign in to comment.