aboutsummaryrefslogtreecommitdiff
path: root/tests/tasks/test_target_matching.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/tasks/test_target_matching.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/tasks/test_target_matching.py (renamed from tests/tasks/test_mentions.py)6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tasks/test_mentions.py b/tests/tasks/test_target_matching.py
index a5da56c..31523af 100644
--- a/tests/tasks/test_mentions.py
+++ b/tests/tasks/test_target_matching.py
@@ -15,9 +15,9 @@ TARGET_URL = "https://dennisfink.me/blog/example/"
@pytest.fixture
def receiver(app: Flask) -> ModuleType:
_ = app
- from webmentions_ssg.tasks import mentions
+ from webmentions_ssg.tasks import target_matching
- return mentions
+ return target_matching
@pytest.mark.parametrize(
@@ -162,7 +162,7 @@ def test_text_mentions_target(
assert receiver.text_mentions_target(body, target_url) is expected
-@patch("webmentions_ssg.tasks.mentions.BeautifulSoup")
+@patch("webmentions_ssg.tasks.target_matching.BeautifulSoup")
def test_html_mentions_target_ignores_non_string_attribute(
beautiful_soup: Mock, receiver: ModuleType
) -> None: