Skip to content

Commit 09e6e83

Browse files
fix tests
1 parent 0f36f8e commit 09e6e83

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/sentry/preprod/api/endpoints/test_organization_preprod_artifact_assemble.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ def test_assemble_basic(
376376
assert response.status_code == 200, response.content
377377
assert response.data["state"] == ChunkFileState.CREATED
378378
assert set(response.data["missingChunks"]) == set()
379-
assert response.data["artifactId"] == artifact_id
379+
expected_url = f"/organizations/{self.organization.slug}/preprod/internal/{artifact_id}"
380+
assert expected_url in response.data["artifactUrl"]
380381

381382
mock_create_preprod_artifact.assert_called_once_with(
382383
org_id=self.organization.id,
@@ -442,7 +443,8 @@ def test_assemble_with_metadata(
442443
assert response.status_code == 200, response.content
443444
assert response.data["state"] == ChunkFileState.CREATED
444445
assert set(response.data["missingChunks"]) == set()
445-
assert response.data["artifactId"] == artifact_id
446+
expected_url = f"/organizations/{self.organization.slug}/preprod/internal/{artifact_id}"
447+
assert expected_url in response.data["artifactUrl"]
446448

447449
mock_create_preprod_artifact.assert_called_once_with(
448450
org_id=self.organization.id,

0 commit comments

Comments
 (0)