-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c05a8e
commit 91080c8
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -735,7 +735,7 @@ def test_put_bad_role(self): | |
self.assertEqual(response.status_code, 400) | ||
|
||
@override_settings(DEFAULT_FROM_EMAIL="[email protected]") | ||
@patch("onadata.apps.api.tasks.send_mail") | ||
@patch("onadata.libs.serializers.organization_member_serializer.send_mail") | ||
def test_add_members_to_org_email(self, mock_email): | ||
self._org_create() | ||
view = OrganizationProfileViewSet.as_view({"post": "members"}) | ||
|
@@ -760,7 +760,7 @@ def test_add_members_to_org_email(self, mock_email): | |
self.assertEqual(set(response.data), set(["denoinc", "aboy"])) | ||
|
||
@override_settings(DEFAULT_FROM_EMAIL="[email protected]") | ||
@patch("onadata.apps.api.tasks.send_mail") | ||
@patch("onadata.libs.serializers.organization_member_serializer.send_mail") | ||
def test_add_members_to_org_email_custom_subj(self, mock_email): | ||
self._org_create() | ||
view = OrganizationProfileViewSet.as_view({"post": "members"}) | ||
|