Skip to content

Commit b9fb23d

Browse files
committed
Fix missing arg in tests
1 parent 55820c7 commit b9fb23d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

readthedocs/projects/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ def send_build_status(build_pk, commit, status):
19171917
for account in user_accounts:
19181918
# Currently we only support GitHub Status API
19191919
if account.provider_name == 'GitHub':
1920-
success = account.send_build_status(build, status)
1920+
success = account.send_build_status(build, commit, status)
19211921
if success:
19221922
return True
19231923

readthedocs/rtd_tests/tests/test_celery.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,13 @@ def test_send_build_status_task_with_social_account(self, send_build_status):
362362
external_build = get(
363363
Build, project=self.project, version=external_version
364364
)
365-
tasks.send_build_status(external_build.id, BUILD_STATUS_SUCCESS)
365+
tasks.send_build_status(
366+
external_build.id, external_build.commit, BUILD_STATUS_SUCCESS
367+
)
366368

367-
send_build_status.assert_called_once_with(external_build, BUILD_STATUS_SUCCESS)
369+
send_build_status.assert_called_once_with(
370+
external_build, external_build.commit, BUILD_STATUS_SUCCESS
371+
)
368372

369373
@patch('readthedocs.projects.tasks.GitHubService.send_build_status')
370374
def test_send_build_status_task_without_remote_repo_or_social_account(self, send_build_status):

0 commit comments

Comments
 (0)