-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1443 from GSA/notify-api-1442
fix broken go live email notification
- Loading branch information
Showing
3 changed files
with
22 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
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
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 |
---|---|---|
|
@@ -58,6 +58,7 @@ def test_send_notification_to_service_users_includes_user_fields_in_personalisat | |
): | ||
persist_mock = mocker.patch("app.service.sender.persist_notification") | ||
mocker.patch("app.service.sender.send_notification_to_queue") | ||
mocker.patch("app.service.sender.redis_store") | ||
|
||
user = sample_service.users[0] | ||
|
||
|
@@ -82,13 +83,16 @@ def test_send_notification_to_service_users_sends_to_active_users_only( | |
notify_service, mocker | ||
): | ||
mocker.patch("app.service.sender.send_notification_to_queue") | ||
mocker.patch("app.service.sender.redis_store", autospec=True) | ||
|
||
first_active_user = create_user(email="[email protected]", state="active") | ||
second_active_user = create_user(email="[email protected]", state="active") | ||
pending_user = create_user(email="[email protected]", state="pending") | ||
service = create_service(user=first_active_user) | ||
dao_add_user_to_service(service, second_active_user) | ||
|
||
dao_add_user_to_service(service, pending_user) | ||
|
||
template = create_template(service, template_type=TemplateType.EMAIL) | ||
|
||
send_notification_to_service_users(service_id=service.id, template_id=template.id) | ||
|