FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: add check in pytest fixture by cojenco · Pull Request #1306 · googleapis/python-storage · GitHub

This repository was archived by the owner on Mar 31, 2026. It is now read-only.
/ python-storage Public archive
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 5 additions & 1 deletion tests/system/conftest.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ def hierarchy_bucket_name():
@pytest.fixture(scope="session")
def hierarchy_bucket(storage_client, hierarchy_bucket_name, file_data):
bucket = storage_client.bucket(hierarchy_bucket_name)
_helpers.retry_429_503(bucket.create)()
# Create the hierarchy bucket only if it doesn't yet exist.
try:
storage_client.get_bucket(bucket)
except exceptions.NotFound:
_helpers.retry_429_503(bucket.create)()

simple_path = _file_data["simple"]["path"]
for filename in _hierarchy_filenames:
Expand Down

Back | FazBrowse Home | New Git URL