Skip to content

Commit 959889c

Browse files
Fix the failing test
Signed-off-by: Lukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent b6245a9 commit 959889c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cla-backend/cla/tests/unit/test_github_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_get_co_author_commits_invalid_gh_email(self, mock_github_instance):
6464
installation_id = 123
6565

6666
# Call the function
67-
result, _ = get_co_author_commits(co_author,commit, pr, installation_id)
67+
result, _ = get_co_author_commits(co_author, commit.sha, pr, installation_id)
6868

6969
# Assertions
7070
self.assertEqual(result.commit_sha, "fake_sha")
@@ -87,7 +87,7 @@ def test_get_co_author_commits_valid_gh_email(self, mock_github_instance):
8787
installation_id = 123
8888

8989
# Call the function
90-
result, _ = get_co_author_commits(co_author,commit, pr, installation_id)
90+
result, _ = get_co_author_commits(co_author, commit.sha, pr, installation_id)
9191

9292
# Assertions
9393
self.assertEqual(result.commit_sha, "fake_sha")

0 commit comments

Comments
 (0)