aboutsummaryrefslogtreecommitdiff
path: root/tests/test_views.py
diff options
context:
space:
mode:
authorDennis Fink2026-10-29 20:59:48 +0100
committerDennis Fink2026-10-29 20:59:48 +0100
commitedd7c0c2220ba12c2a773f9ba1cf6e0e7a273856 (patch)
treec067d16841e3d3441e3b4c6f7ed833a6d57fae04 /tests/test_views.py
parent9a1e863079b64883beadaba7b283621f1b3cf70a (diff)
downloadwebmentions-ssg-edd7c0c2220ba12c2a773f9ba1cf6e0e7a273856.tar.gz
webmentions-ssg-edd7c0c2220ba12c2a773f9ba1cf6e0e7a273856.zip
feat(receiver): send Webmention notification digests
Batch verified Webmention notifications into a scheduled digest so bursts of incoming mentions do not generate a separate email for every verification. Track which mentions have already been reported and leave them pending when SMTP delivery fails so a later digest can retry safely.
Diffstat (limited to 'tests/test_views.py')
-rw-r--r--tests/test_views.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_views.py b/tests/test_views.py
index 54098db..ed944c9 100644
--- a/tests/test_views.py
+++ b/tests/test_views.py
@@ -156,7 +156,7 @@ def test_endpoint_creates_webmention(
identifier = webmention.uuid
assert response.headers["Location"].endswith(str(identifier))
- verify_webmention.assert_called_once_with(identifier, send_notification=True)
+ verify_webmention.assert_called_once_with(identifier)
def test_endpoint_is_idempotent(
@@ -190,7 +190,7 @@ def test_endpoint_is_idempotent(
identifier = webmention.uuid
- verify_webmention.assert_called_once_with(identifier, send_notification=True)
+ verify_webmention.assert_called_once_with(identifier)
def test_resending_resets_failure_state(
@@ -229,7 +229,7 @@ def test_resending_resets_failure_state(
assert webmention.status == "received"
assert webmention.failure_reason is None
- verify_webmention.assert_called_once_with(identifier, send_notification=False)
+ verify_webmention.assert_called_once_with(identifier)
@pytest.mark.parametrize("path", ["/sent", f"/sent/{uuid.uuid7()}"])
@@ -604,7 +604,7 @@ def test_reverify_received_webmention(
assert webmention.status == "received"
assert webmention.failure_reason is None
- verify_webmention.assert_called_once_with(identifier, send_notification=False)
+ verify_webmention.assert_called_once_with(identifier)
def test_rescan_sent_sources_requires_login(client: FlaskClient) -> None:
@@ -931,4 +931,4 @@ def test_endpoint_reverifies_after_cooldown(
assert stored.status == "received"
assert stored.failure_reason is None
- verify.assert_called_once_with(identifier, send_notification=False)
+ verify.assert_called_once_with(identifier)