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

Commit fb28d63

Browse files
committed
Fix tests
1 parent 54d6710 commit fb28d63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

upload/tests/views/test_upload_coverage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_deactivated_repo(db):
6868
)
6969
client = APIClient()
7070
client.credentials(HTTP_AUTHORIZATION="token " + repository.upload_token)
71-
response = client.post(url, {"commit_sha": "abc123"}, format="json")
71+
response = client.post(url, {"commitid": "abc123"}, format="json")
7272
assert response.status_code == 400
7373
assert "This repository is deactivated" in str(response.json())
7474

@@ -91,7 +91,7 @@ def test_upload_coverage_with_errors(db):
9191

9292
# Invalid flag format
9393
response = client.post(
94-
url, {"commit_sha": "abc123", "flags": "not-a-list"}, format="json"
94+
url, {"commitid": "abc123", "flags": "not-a-list"}, format="json"
9595
)
9696
assert response.status_code == 400
9797
assert "flags" in response.json()
@@ -131,7 +131,7 @@ def test_upload_coverage_post(db, mocker):
131131
"ci_service": "ci_service",
132132
"ci_url": "ci_url",
133133
"code": "code",
134-
"commit_sha": commit.commitid,
134+
"commitid": commit.commitid,
135135
"flags": ["flag1", "flag2"],
136136
"job_code": "job_code",
137137
"version": "version",
@@ -229,7 +229,7 @@ def test_upload_coverage_post_shelter(db, mocker):
229229
"ci_service": "ci_service",
230230
"ci_url": "ci_url",
231231
"code": "code",
232-
"commit_sha": commit.commitid,
232+
"commitid": commit.commitid,
233233
"flags": ["flag1", "flag2"],
234234
"job_code": "job_code",
235235
"storage_path": "shelter/test/path.txt",

0 commit comments

Comments
 (0)