aboutsummaryrefslogtreecommitdiff
path: root/tests/test_cli.py
diff options
context:
space:
mode:
authorDennis Fink2026-11-13 21:45:19 +0100
committerDennis Fink2026-11-13 21:48:58 +0100
commit4c50f6be754c7a474c5abc2cde7412041289f754 (patch)
treeaae7ef7a8522a581de7fa66536c294ba9e6f6bc8 /tests/test_cli.py
parent497de85e7f2b91dc9e8ac546e9c1e41f9b6ae43f (diff)
downloadwebmentions-ssg-4c50f6be754c7a474c5abc2cde7412041289f754.tar.gz
webmentions-ssg-4c50f6be754c7a474c5abc2cde7412041289f754.zip
refactor(core): remove postponed model annotations
Drop `from __future__ import annotations` now that UUID names no longer shadow the module namespace, and add coverage that mapped UUID and relationship annotations resolve correctly at runtime. Apply minor Python 3.14 syntax and formatting cleanup across tests and networking.
Diffstat (limited to '')
-rw-r--r--tests/test_cli.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 0d9b357..8fa61d5 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -5,8 +5,8 @@
import logging
from collections.abc import Iterator
from pathlib import Path
-from uuid import UUID
from unittest.mock import patch
+from uuid import UUID
import pytest
import sqlalchemy as sa
@@ -306,9 +306,12 @@ def test_upgrade_converts_received_status_without_losing_rows(
}
assert isinstance(columns["status"]["type"], sa.String)
assert columns["status"]["type"].length == 9
- assert connection.execute(
- sa.text("SELECT status FROM received_webmentions")
- ).scalar_one() == "verifying"
+ assert (
+ connection.execute(
+ sa.text("SELECT status FROM received_webmentions")
+ ).scalar_one()
+ == "verifying"
+ )
mention = db.session.get(ReceivedWebmention, UUID(hex=identifier))
assert mention is not None