diff options
Diffstat (limited to 'tests/forms/test_validators.py')
| -rw-r--r-- | tests/forms/test_validators.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/forms/test_validators.py b/tests/forms/test_validators.py index 4234552..8822310 100644 --- a/tests/forms/test_validators.py +++ b/tests/forms/test_validators.py @@ -28,7 +28,9 @@ def test_allowed_hostname_accepts_configured_hostname(app: Flask) -> None: def test_allowed_hostname_rejects_unconfigured_hostname(app: Flask) -> None: app.config["ALLOWED_TARGET_HOSTNAMES"] = ["dennisfink.me"] form = URLForm(MultiDict({"url": "https://example.com/post"})) - with app.app_context(), pytest.raises(ValidationError, match="Invalid input"): + with app.app_context(), pytest.raises( + ValidationError, match="Target hostname is not in ALLOWED_TARGET_HOSTNAMES" + ): AllowedTargetHostname()(form, form.url) |
