Skip to content

Commit 4767f58

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

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

readthedocs/rtd_tests/tests/test_celery.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,14 @@ 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+
commit = '12345abc'
366+
tasks.send_build_status(
367+
external_build.id, commit, BUILD_STATUS_SUCCESS
368+
)
366369

367-
send_build_status.assert_called_once_with(external_build, BUILD_STATUS_SUCCESS)
370+
send_build_status.assert_called_once_with(
371+
external_build, commit, BUILD_STATUS_SUCCESS
372+
)
368373

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

0 commit comments

Comments
 (0)