aboutsummaryrefslogtreecommitdiff
path: root/tests/views/helpers.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/views/helpers.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 'tests/views/helpers.py')
-rw-r--r--tests/views/helpers.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/views/helpers.py b/tests/views/helpers.py
index 1fe1ed2..2da2ace 100644
--- a/tests/views/helpers.py
+++ b/tests/views/helpers.py
@@ -40,7 +40,9 @@ def mock_endpoint_form(
form.target.data = target
form.errors = errors or {}
- monkeypatch.setattr(views_module.forms, "EndpointForm", Mock(return_value=form))
+ monkeypatch.setattr(
+ views_module.forms, "WebmentionSubmissionForm", Mock(return_value=form)
+ )
return form
@@ -126,7 +128,9 @@ def mock_admin_action_form(
form = Mock()
form.validate_on_submit.return_value = valid
- monkeypatch.setattr(views_module.forms, "AdminActionForm", Mock(return_value=form))
+ monkeypatch.setattr(
+ views_module.forms, "ConfirmActionForm", Mock(return_value=form)
+ )
return form