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

Commit 809a6c0

Browse files
committed
update new test from main
1 parent a4b45ff commit 809a6c0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

upload/tests/views/test_bundle_analysis.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def test_upload_bundle_analysis_success(db, client, mocker, mock_redis):
106106
@override_settings(SHELTER_SHARED_SECRET="shelter-shared-secret")
107107
def test_upload_bundle_analysis_success_shelter(db, client, mocker, mock_redis):
108108
upload = mocker.patch.object(TaskService, "upload")
109-
mock_sentry_metrics = mocker.patch(
110-
"upload.views.bundle_analysis.sentry_metrics.incr"
109+
mock_metrics = mocker.patch(
110+
"upload.views.bundle_analysis.BUNDLE_ANALYSIS_UPLOAD_VIEWS_COUNTER.labels"
111111
)
112112
create_presigned_put = mocker.patch(
113113
"services.archive.StorageService.create_presigned_put",
@@ -179,9 +179,8 @@ def test_upload_bundle_analysis_success_shelter(db, client, mocker, mock_redis):
179179
report_code=None,
180180
report_type="bundle_analysis",
181181
)
182-
mock_sentry_metrics.assert_called_with(
183-
"upload",
184-
tags={
182+
mock_metrics.assert_called_with(
183+
**{
185184
"agent": "cli",
186185
"version": "0.4.7",
187186
"action": "bundle_analysis",

0 commit comments

Comments
 (0)