aboutsummaryrefslogtreecommitdiff
path: root/tests/tasks/test_notifications.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tasks/test_notifications.py')
-rw-r--r--tests/tasks/test_notifications.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tasks/test_notifications.py b/tests/tasks/test_notifications.py
index 6069d79..fa6ef79 100644
--- a/tests/tasks/test_notifications.py
+++ b/tests/tasks/test_notifications.py
@@ -15,7 +15,7 @@ from webmentions_ssg.models import ReceivedWebmention
def test_sends_email_for_verified_webmention(app: Flask) -> None:
from webmentions_ssg.tasks.notifications import send_webmention_notification
- app.config["WEBMENTIONS_SSG_NOTIFICATION_EMAIL"] = "owner@example.com"
+ app.config["NOTIFICATION_EMAIL"] = "owner@example.com"
identifier = uuid.uuid7()
with app.app_context():
@@ -43,7 +43,7 @@ def test_sends_email_for_verified_webmention(app: Flask) -> None:
def test_skips_unverified_webmentions(app: Flask, status: str) -> None:
from webmentions_ssg.tasks.notifications import send_webmention_notification
- app.config["WEBMENTIONS_SSG_NOTIFICATION_EMAIL"] = "owner@example.com"
+ app.config["NOTIFICATION_EMAIL"] = "owner@example.com"
identifier = uuid.uuid7()
with app.app_context():
@@ -66,7 +66,7 @@ def test_skips_unverified_webmentions(app: Flask, status: str) -> None:
def test_skips_when_notifications_disabled(app: Flask) -> None:
from webmentions_ssg.tasks.notifications import send_webmention_notification
- app.config["WEBMENTIONS_SSG_NOTIFICATION_EMAIL"] = None
+ app.config["NOTIFICATION_EMAIL"] = None
identifier = uuid.uuid7()
with app.app_context():
@@ -89,7 +89,7 @@ def test_skips_when_notifications_disabled(app: Flask) -> None:
def test_skips_unknown_webmention(app: Flask) -> None:
from webmentions_ssg.tasks.notifications import send_webmention_notification
- app.config["WEBMENTIONS_SSG_NOTIFICATION_EMAIL"] = "owner@example.com"
+ app.config["NOTIFICATION_EMAIL"] = "owner@example.com"
with app.app_context():
with patch("webmentions_ssg.tasks.notifications.mail.send") as send:
@@ -115,7 +115,7 @@ def test_queues_notification_after_verification(
) -> None:
from webmentions_ssg.tasks import receiver
- app.config["WEBMENTIONS_SSG_NOTIFICATION_EMAIL"] = recipient
+ app.config["NOTIFICATION_EMAIL"] = recipient
identifier = uuid.uuid7()
with app.app_context():