aboutsummaryrefslogtreecommitdiff
path: root/tests/forms/test_sources.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_sources.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 'tests/forms/test_sources.py')
-rw-r--r--tests/forms/test_sources.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/forms/test_sources.py b/tests/forms/test_sources.py
index 44b4096..082b0d3 100644
--- a/tests/forms/test_sources.py
+++ b/tests/forms/test_sources.py
@@ -29,6 +29,8 @@ def test_source_filter_form_accepts_get_params(app: Flask) -> None:
)
assert form.validate()
assert form.status.data == "retrying"
+ 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 (form.sort.data, form.order.data, form.per_page.data) == (