diff options
| author | Dennis Fink | 2026-11-15 20:42:20 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-15 20:42:20 +0100 |
| commit | 509d93b2976e353d29441a7a7b7e78ca466dc4fd (patch) | |
| tree | 753e637aefabd4293f808addbf9c310eaf0aa552 /tests/tasks/test_notifications.py | |
| parent | c74feda222745ab7cca8993df83d9ea5f9d07e5b (diff) | |
| download | webmentions-ssg-509d93b2976e353d29441a7a7b7e78ca466dc4fd.tar.gz webmentions-ssg-509d93b2976e353d29441a7a7b7e78ca466dc4fd.zip | |
refactor(core)!: standardize application terminology
Rename configuration keys, task helpers, forms, network utilities, and
view endpoints to make their responsibilities and domains more explicit.
Align source-management routes and templates with the new terminology
and rename the target-matching module and related task abstractions
consistently.
BREAKING CHANGE: configuration keys have been renamed and sent-source
routes move from `/sent` to `/sources`, with corresponding blueprint
endpoint changes.
Diffstat (limited to 'tests/tasks/test_notifications.py')
| -rw-r--r-- | tests/tasks/test_notifications.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tasks/test_notifications.py b/tests/tasks/test_notifications.py index 876c2b3..a1a002e 100644 --- a/tests/tasks/test_notifications.py +++ b/tests/tasks/test_notifications.py @@ -41,7 +41,7 @@ def create_mention(app: Flask, status: str = "verified") -> uuid.UUID: def test_digest_sends_one_email_for_multiple_verified_mentions( notifications: ModuleType, app: Flask ) -> None: - app.config["NOTIFICATION_EMAIL"] = "owner@example.com" + app.config["DIGEST_EMAIL"] = "owner@example.com" first = create_mention(app) second = create_mention(app) @@ -75,7 +75,7 @@ def test_digest_sends_one_email_for_multiple_verified_mentions( def test_digest_skips_when_notifications_disabled( notifications: ModuleType, app: Flask ) -> None: - app.config["NOTIFICATION_EMAIL"] = None + app.config["DIGEST_EMAIL"] = None identifier = create_mention(app) with app.app_context(): @@ -92,7 +92,7 @@ def test_digest_skips_when_notifications_disabled( def test_digest_does_not_mark_mentions_when_email_fails( notifications: ModuleType, app: Flask ) -> None: - app.config["NOTIFICATION_EMAIL"] = "owner@example.com" + app.config["DIGEST_EMAIL"] = "owner@example.com" identifier = create_mention(app) with app.app_context(): @@ -123,7 +123,7 @@ def test_digest_does_not_mark_mentions_when_email_fails( def test_digest_skips_when_no_new_mentions( notifications: ModuleType, app: Flask ) -> None: - app.config["NOTIFICATION_EMAIL"] = "owner@example.com" + app.config["DIGEST_EMAIL"] = "owner@example.com" with app.app_context(): with patch("webmentions_ssg.tasks.notifications.mail.send") as send: |
