aboutsummaryrefslogtreecommitdiff
path: root/tests/test_forms.py
diff options
context:
space:
mode:
authorDennis Fink2026-11-15 21:18:19 +0100
committerDennis Fink2026-11-15 21:18:19 +0100
commit9b00526ab79257b65cedd71595848f09ecf84279 (patch)
treef9dfc5c0934499d47499bf083bd864f72947958c /tests/test_forms.py
parent509d93b2976e353d29441a7a7b7e78ca466dc4fd (diff)
downloadwebmentions-ssg-9b00526ab79257b65cedd71595848f09ecf84279.tar.gz
webmentions-ssg-9b00526ab79257b65cedd71595848f09ecf84279.zip
refactor(core)!: clarify Webmention domain terminology
Rename ambiguous models, statuses, task modules, fields, and helpers so names reflect source documents, verification, endpoint discovery, and delivery state. Migrate persisted status values and database identifiers without losing existing Webmention data. BREAKING CHANGE: persisted status values and database schema names have changed, and several public Python names have been renamed.
Diffstat (limited to '')
-rw-r--r--tests/test_forms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_forms.py b/tests/test_forms.py
index b5b3296..707ac09 100644
--- a/tests/test_forms.py
+++ b/tests/test_forms.py
@@ -12,7 +12,7 @@ from webmentions_ssg.forms import (
ConfirmActionForm,
LoginForm,
MaxURLBytes,
- PublicIPLiteral,
+ RejectNonPublicIPLiteral,
WebmentionSubmissionForm,
)
@@ -303,12 +303,12 @@ def test_allowed_hostname_uses_custom_message(app: Flask) -> None:
def test_public_ip_literal_rejects_ipv6_transition_addresses(address: str) -> None:
form = URLForm(MultiDict({"url": f"https://[{address}]/"}))
with pytest.raises(ValidationError, match="URL must use a public address"):
- PublicIPLiteral()(form, form.url)
+ RejectNonPublicIPLiteral()(form, form.url)
def test_public_ip_literal_accepts_public_ipv6_address() -> None:
form = URLForm(MultiDict({"url": "https://[2606:2800:220:1:248:1893:25c8:1946]/"}))
- PublicIPLiteral()(form, form.url)
+ RejectNonPublicIPLiteral()(form, form.url)
def test_allowed_hostname_handles_invalid_ipv6(app: Flask) -> None: