From 4bd1d9e348918b2e55db47a1ac3489d035cf55e2 Mon Sep 17 00:00:00 2001
From: Dennis Fink
Date: Thu, 12 Nov 2026 19:57:08 +0100
Subject: refactor(core): split modules by responsibility
Break up monolithic views, task helpers, networking, CLI, and
application extension setup so each module owns a focused concern.
Reorganize the test suite around the new boundaries while preserving
existing Webmention behavior and coverage.
---
tests/tasks/test_receiver.py | 160 +------------------------------------------
1 file changed, 2 insertions(+), 158 deletions(-)
(limited to 'tests/tasks/test_receiver.py')
diff --git a/tests/tasks/test_receiver.py b/tests/tasks/test_receiver.py
index 44d1cc2..5441eb7 100644
--- a/tests/tasks/test_receiver.py
+++ b/tests/tasks/test_receiver.py
@@ -15,7 +15,7 @@ from flask import Flask
from webmentions_ssg import DATABASE as db
from webmentions_ssg.models import ReceivedWebmention
-from webmentions_ssg.url_security import AddressResolutionError
+from webmentions_ssg.net import AddressResolutionError
SOURCE_URL = "https://source.example/article"
TARGET_URL = "https://dennisfink.me/blog/example/"
@@ -68,148 +68,6 @@ def set_stream_response(httpx_client: Mock, response: httpx.Response) -> Mock:
return client
-@pytest.mark.parametrize(
- ("body", "expected"),
- [
- pytest.param(f'Reply', True, id="a-href"),
- pytest.param(f'', True, id="area-href"),
- pytest.param(
- f'', True, id="link-href"
- ),
- pytest.param(f'
', True, id="img-src"),
- pytest.param(f'', True, id="audio-src"),
- pytest.param(f'', True, id="video-src"),
- pytest.param(
- f'', True, id="audio-source-src"
- ),
- pytest.param(
- f'', True, id="video-source-src"
- ),
- pytest.param(f'', True, id="iframe-src"),
- pytest.param(f'