From 509d93b2976e353d29441a7a7b7e78ca466dc4fd Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 15 Nov 2026 20:42:20 +0100 Subject: 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. --- tests/test_cli.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/test_cli.py') diff --git a/tests/test_cli.py b/tests/test_cli.py index 49494d2..cdaf896 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -329,7 +329,7 @@ def test_upgrade_converts_received_status_without_losing_rows( def test_mail_cli_sends_to_configured_notification_email(app: Flask) -> None: app.config.update( - NOTIFICATION_EMAIL="owner@example.com", MAIL_DEFAULT_SENDER="sender@example.com" + DIGEST_EMAIL="owner@example.com", MAIL_DEFAULT_SENDER="sender@example.com" ) with patch("webmentions_ssg.mail.send") as send: @@ -347,7 +347,7 @@ def test_mail_cli_sends_to_configured_notification_email(app: Flask) -> None: def test_mail_cli_overrides_configured_recipient(app: Flask) -> None: app.config.update( - NOTIFICATION_EMAIL="owner@example.com", MAIL_DEFAULT_SENDER="sender@example.com" + DIGEST_EMAIL="owner@example.com", MAIL_DEFAULT_SENDER="sender@example.com" ) with patch("webmentions_ssg.mail.send") as send: @@ -361,18 +361,18 @@ def test_mail_cli_overrides_configured_recipient(app: Flask) -> None: def test_mail_cli_requires_recipient(app: Flask) -> None: - app.config.update(NOTIFICATION_EMAIL=None, MAIL_DEFAULT_SENDER="sender@example.com") + app.config.update(DIGEST_EMAIL=None, MAIL_DEFAULT_SENDER="sender@example.com") with patch("webmentions_ssg.mail.send") as send: result = app.test_cli_runner().invoke(args=["mail", "test"]) assert result.exit_code != 0 - assert "Set NOTIFICATION_EMAIL or pass --to" in result.output + assert "Set DIGEST_EMAIL or pass --to" in result.output send.assert_not_called() def test_mail_cli_requires_default_sender(app: Flask) -> None: - app.config.update(NOTIFICATION_EMAIL="owner@example.com", MAIL_DEFAULT_SENDER=None) + app.config.update(DIGEST_EMAIL="owner@example.com", MAIL_DEFAULT_SENDER=None) with patch("webmentions_ssg.mail.send") as send: result = app.test_cli_runner().invoke(args=["mail", "test"]) @@ -384,7 +384,7 @@ def test_mail_cli_requires_default_sender(app: Flask) -> None: def test_mail_cli_reports_smtp_failure(app: Flask) -> None: app.config.update( - NOTIFICATION_EMAIL="owner@example.com", MAIL_DEFAULT_SENDER="sender@example.com" + DIGEST_EMAIL="owner@example.com", MAIL_DEFAULT_SENDER="sender@example.com" ) with patch( -- cgit v1.3.1