diff options
| author | Dennis Fink | 2026-11-17 19:43:04 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-17 19:43:04 +0100 |
| commit | 5e24e8307f650e72881f747661a2b6e52db15f2d (patch) | |
| tree | 585b456b9439a17957e8633f566c0725bb9d8595 /tests/views/test_moderation.py | |
| parent | 6d6d079a3a99d3d3a922a640b6925eb2adf044de (diff) | |
| download | webmentions-ssg-5e24e8307f650e72881f747661a2b6e52db15f2d.tar.gz webmentions-ssg-5e24e8307f650e72881f747661a2b6e52db15f2d.zip | |
feat(receiver): add Webmention detail and status history
Add an authenticated detail view with full failure information,
timestamps, actions, public status links, and recorded lifecycle
transitions.
Persist verification and resubmission events, backfill existing rows
during migration, and clean up history when received Webmentions are
deleted.
Diffstat (limited to 'tests/views/test_moderation.py')
| -rw-r--r-- | tests/views/test_moderation.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/views/test_moderation.py b/tests/views/test_moderation.py index 7f683d4..26b7cc4 100644 --- a/tests/views/test_moderation.py +++ b/tests/views/test_moderation.py @@ -96,18 +96,6 @@ def test_invalid_list_kind_and_missing_entry(app: Flask, client: FlaskClient) -> assert client.post("/moderation/blocked/123/delete").status_code == 404 -def test_received_row_can_block_domain(app: Flask, client: FlaskClient) -> None: - log_in(app, client) - mention_id = create_received_webmention(app, source="https://spam.example/article") - response = client.get("/received") - assert b"Block this domain" in response.data - response = client.post(f"/received/{mention_id}/block-source") - assert response.status_code == HTTPStatus.FOUND - with app.app_context(): - rule = db.session.scalar(sa.select(BlockedDomain)) - assert rule is not None and rule.domain == "spam.example" - - def test_block_selected_source_domains_deduplicates_and_preserves_mentions( app: Flask, client: FlaskClient ) -> None: |
