Skip to content

Commit 23a0418

Browse files
author
Vaghinak Basentsyan
committed
Changed function arguments
1 parent 424d946 commit 23a0418

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/projects/test_add_contributors_to_project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ def test_add_contributors(self, client, get_project_metadata_mock, get_team_mock
5858
self.assertEqual(len(skipped), 7)
5959

6060
@patch("lib.infrastructure.controller.Controller.get_team")
61-
@patch("lib.infrastructure.controller.Controller.backend_client", MagicMock())
62-
def test_invite_contributors(self, get_team_mock):
61+
@patch("lib.infrastructure.controller.Controller.backend_client", new_callable=PropertyMock)
62+
def test_invite_contributors(self, client, get_team_mock):
6363
random_emails = [self.random_email for i in range(20)]
64-
64+
client.return_value.invite_contributors.return_value = random_emails[:3], []
6565
team_users = [UserEntity(email=email, user_role=3) for email in random_emails[: 10]]
6666
to_add_emails = random_emails[8: 18]
6767
pending_users = [dict(email=email, user_role=3) for email in random_emails[15: 20]]

0 commit comments

Comments
 (0)