diff --git a/cla-backend/cla/models/github_models.py b/cla-backend/cla/models/github_models.py index 5f64c89f4..9b5969a52 100644 --- a/cla-backend/cla/models/github_models.py +++ b/cla-backend/cla/models/github_models.py @@ -1547,7 +1547,6 @@ def update_pull_request( github_repository_id, pull_request, repository_name, - organization_name, signed: List[UserCommitSummary], missing: List[UserCommitSummary], project_version, diff --git a/cla-backend/cla/tests/unit/test_github_models.py b/cla-backend/cla/tests/unit/test_github_models.py index f72676e4d..6ac21920e 100644 --- a/cla-backend/cla/tests/unit/test_github_models.py +++ b/cla-backend/cla/tests/unit/test_github_models.py @@ -99,8 +99,7 @@ def test_update_pull_request_valid_labels(self, mock_github_installation, mock_u installation_id = 123 github_repository_id = 456 pull_request = MagicMock() - repository_name = "test_repo" - organization_name = "test_org" + repository_name = "test_org/test_repo" signed = [ UserCommitSummary( author_id="1", @@ -132,7 +131,6 @@ def test_update_pull_request_valid_labels(self, mock_github_installation, mock_u github_repository_id, pull_request, repository_name, - organization_name, signed, missing, project_version, @@ -140,7 +138,6 @@ def test_update_pull_request_valid_labels(self, mock_github_installation, mock_u # Assertions client_mock.add_labels_to_pr.assert_called_once_with( - organization_name, repository_name, pull_request.number, ["CLA: Valid"],