diff options
| author | Dennis Fink | 2026-11-18 21:28:28 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-18 21:28:28 +0100 |
| commit | f267db9148e3a390a1a2e50fe71ac4675dceaea1 (patch) | |
| tree | 4a8490599493af811d803b575c4fcdc103d1c68b /tests/models | |
| parent | b2b5429bcf008db357d9d65db77ba37f7af908a8 (diff) | |
| download | webmentions-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/models/test_sources.py | 2 |
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 |
