From 4c50f6be754c7a474c5abc2cde7412041289f754 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Fri, 13 Nov 2026 21:45:19 +0100 Subject: 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. --- tests/test_cli.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tests/test_cli.py') 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 -- cgit v1.3.1