diff options
| author | Dennis Fink | 2026-11-18 17:41:44 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-18 17:41:44 +0100 |
| commit | e3e195ea07fd57288d32c842689ebed7fba636f0 (patch) | |
| tree | da4358930bfc6bd7c855a77de2898c19e7043a84 /tests/forms | |
| parent | 44ece87ed14c5d19bd6ceabfd023e45561b08ef3 (diff) | |
| download | webmentions-ssg-e3e195ea07fd57288d32c842689ebed7fba636f0.tar.gz webmentions-ssg-e3e195ea07fd57288d32c842689ebed7fba636f0.zip | |
style(core): improve mobile table layouts
Hide secondary received and sent table columns below the `md` breakpoint
while keeping status, primary identifiers, details, and actions
accessible.
Add responsive wrappers, mobile received timestamps, and wrapping for
long paths and URLs to improve small-screen readability.
Diffstat (limited to 'tests/forms')
| -rw-r--r-- | tests/forms/test_validators.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/forms/test_validators.py b/tests/forms/test_validators.py index 8822310..2c427d3 100644 --- a/tests/forms/test_validators.py +++ b/tests/forms/test_validators.py @@ -28,8 +28,11 @@ 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="Target hostname is not in ALLOWED_TARGET_HOSTNAMES" + with ( + app.app_context(), + pytest.raises( + ValidationError, match="Target hostname is not in ALLOWED_TARGET_HOSTNAMES" + ), ): AllowedTargetHostname()(form, form.url) |
