-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove the FF_BOUNCE_RATE_BACKEND feature flag (#1978)
- Loading branch information
Showing
9 changed files
with
52 additions
and
136 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
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
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 |
---|---|---|
|
@@ -1184,16 +1184,15 @@ def json(): | |
|
||
class TestBounceRate: | ||
def test_send_email_should_use_service_reply_to_email(self, sample_service, sample_email_template, mocker, notify_api): | ||
with set_config_values(notify_api, {"FF_BOUNCE_RATE_BACKEND": True}): | ||
mocker.patch("app.aws_ses_client.send_email", return_value="reference") | ||
mocker.patch("app.bounce_rate_client.set_sliding_notifications") | ||
db_notification = save_notification(create_notification(template=sample_email_template, reply_to_text="[email protected]")) | ||
create_reply_to_email(service=sample_service, email_address="[email protected]") | ||
|
||
send_to_providers.send_email_to_provider( | ||
db_notification, | ||
) | ||
app.bounce_rate_client.set_sliding_notifications.assert_called_once_with(sample_service.id, str(db_notification.id)) | ||
mocker.patch("app.aws_ses_client.send_email", return_value="reference") | ||
mocker.patch("app.bounce_rate_client.set_sliding_notifications") | ||
db_notification = save_notification(create_notification(template=sample_email_template, reply_to_text="[email protected]")) | ||
create_reply_to_email(service=sample_service, email_address="[email protected]") | ||
|
||
send_to_providers.send_email_to_provider( | ||
db_notification, | ||
) | ||
app.bounce_rate_client.set_sliding_notifications.assert_called_once_with(sample_service.id, str(db_notification.id)) | ||
|
||
def test_check_service_over_bounce_rate_critical(self, mocker: MockFixture, notify_api, fake_uuid): | ||
with notify_api.app_context(): | ||
|
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