diff options
Diffstat (limited to 'tests/test_forms.py')
| -rw-r--r-- | tests/test_forms.py | 6 |
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: |
