Skip to content

Commit 6fec7c5

Browse files
Fix failing test
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent 41fad0d commit 6fec7c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def test_get_co_author_commits_invalid_gh_email(self, mock_github_instance):
5555
commit = MagicMock()
5656
commit.sha = "fake_sha"
5757
mock_github_instance.return_value.get_github_user_by_email.return_value = None
58+
mock_github_instance.return_value.get_github_user_by_login.return_value = None
5859
pr = 1
5960
installation_id = 123
6061

@@ -74,6 +75,7 @@ def test_get_co_author_commits_valid_gh_email(self, mock_github_instance):
7475
co_author = ("co_author", "co_author_email.gmail.com")
7576
commit = MagicMock()
7677
commit.sha = "fake_sha"
78+
mock_github_instance.return_value.get_github_user_by_login.return_value = None
7779
mock_github_instance.return_value.get_github_user_by_email.return_value = Mock(
7880
id=123, login="co_author_login"
7981
)

0 commit comments

Comments
 (0)