Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit eec55a4

Browse files
committed
read test bucket name from config instead of hardcoding
1 parent f287376 commit eec55a4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

graphql_api/tests/test_test_analytics.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,21 +172,23 @@ def store_in_redis(repository):
172172

173173
@pytest.fixture
174174
def store_in_storage(repository, mock_storage):
175+
from django.conf import settings
176+
175177
try:
176-
mock_storage.create_root_storage("codecov")
178+
mock_storage.create_root_storage(settings.GCS_BUCKET_NAME)
177179
except BucketAlreadyExistsError:
178180
pass
179181

180182
mock_storage.write_file(
181-
"codecov",
183+
settings.GCS_BUCKET_NAME,
182184
f"test_results/rollups/{repository.repoid}/{repository.branch}/30",
183185
test_results_table.write_ipc(None).getvalue(),
184186
)
185187

186188
yield
187189

188190
mock_storage.delete_file(
189-
"codecov",
191+
settings.GCS_BUCKET_NAME,
190192
f"test_results/rollups/{repository.repoid}/{repository.branch}/30",
191193
)
192194

0 commit comments

Comments
 (0)