aboutsummaryrefslogtreecommitdiff
path: root/tests/models
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/models
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/models')
-rw-r--r--tests/models/test_sources.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/models/test_sources.py b/tests/models/test_sources.py
index 8d01d79..10af3d6 100644
--- a/tests/models/test_sources.py
+++ b/tests/models/test_sources.py
@@ -10,6 +10,7 @@ from typing import get_type_hints
import pytest
import sqlalchemy as sa
from flask import Flask
+from sqlalchemy.engine import CursorResult
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm import Mapped
@@ -93,6 +94,7 @@ def test_sent_webmention_pending_sql_matches_python(app: Flask) -> None:
.where(SentWebmention.awaiting_processing)
.values(attempt_count=1)
)
+ assert isinstance(result, CursorResult)
assert result.rowcount == 3