aboutsummaryrefslogtreecommitdiff
path: root/tests/test_cli.py
diff options
context:
space:
mode:
authorDennis Fink2026-11-15 20:42:20 +0100
committerDennis Fink2026-11-15 20:42:20 +0100
commit509d93b2976e353d29441a7a7b7e78ca466dc4fd (patch)
tree753e637aefabd4293f808addbf9c310eaf0aa552 /tests/test_cli.py
parentc74feda222745ab7cca8993df83d9ea5f9d07e5b (diff)
downloadwebmentions-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 '')
-rw-r--r--tests/test_cli.py12
1 files changed, 6 insertions, 6 deletions
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(