diff options
| author | Dennis Fink | 2026-10-25 22:26:40 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-10-25 22:26:40 +0100 |
| commit | ce802830c37565d325ba2ecc060443550abb1955 (patch) | |
| tree | b2cdf65353b1eb28d2c8d394b0dcd24461c4db6c /tests/tasks/test_notifications.py | |
| parent | a231913ab273f427697f2d27d615b495f6e160bb (diff) | |
| download | webmentions-ssg-ce802830c37565d325ba2ecc060443550abb1955.tar.gz webmentions-ssg-ce802830c37565d325ba2ecc060443550abb1955.zip | |
refactor(core): simplify configuration keys
Remove the WEBMENTIONS_SSG prefix from application-specific
configuration settings and update validators, tasks, and tests to use
the shorter names.
Diffstat (limited to 'tests/tasks/test_notifications.py')
| -rw-r--r-- | tests/tasks/test_notifications.py | 10 |
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(): |
