aboutsummaryrefslogtreecommitdiff
path: root/tests/forms/test_received.py
diff options
context:
space:
mode:
authorDennis Fink2026-11-18 21:28:28 +0100
committerDennis Fink2026-11-18 21:28:28 +0100
commitf267db9148e3a390a1a2e50fe71ac4675dceaea1 (patch)
tree4a8490599493af811d803b575c4fcdc103d1c68b /tests/forms/test_received.py
parentb2b5429bcf008db357d9d65db77ba37f7af908a8 (diff)
downloadwebmentions-ssg-f267db9148e3a390a1a2e50fe71ac4675dceaea1.tar.gz
webmentions-ssg-f267db9148e3a390a1a2e50fe71ac4675dceaea1.zip
refactor(core): tighten static typing
Add explicit runtime narrowing in tests and simplify Huey decorator annotations so static analysis reflects the dynamic task wrapper behavior. Clean up URL argument construction and form error updates while preserving existing application behavior.
Diffstat (limited to '')
-rw-r--r--tests/forms/test_received.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/forms/test_received.py b/tests/forms/test_received.py
index 4ef9ed3..913ab6d 100644
--- a/tests/forms/test_received.py
+++ b/tests/forms/test_received.py
@@ -25,6 +25,8 @@ def test_received_filter_form_accepts_valid_get_params(app: Flask) -> None:
assert form.validate()
assert form.status.data == "declined"
assert form.q.data == "example.org"
+ assert form.date_from.data is not None
+ assert form.date_to.data is not None
assert form.date_from.data.isoformat() == "2026-11-08"
assert form.date_to.data.isoformat() == "2026-11-14"
assert "csrf_token" not in form._fields