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/views/test_session.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/views') diff --git a/tests/views/test_session.py b/tests/views/test_session.py index d89f98e..1a58f52 100644 --- a/tests/views/test_session.py +++ b/tests/views/test_session.py @@ -173,7 +173,9 @@ def test_login_always_checks_password( assert response.status_code == 302 assert response.headers["Location"].endswith("/login") expected_hash = ( - real_password_hash if username == "admin" else views_module.dummy_password_hash() + real_password_hash + if username == "admin" + else views_module.dummy_password_hash() ) assert checked_passwords == [(expected_hash, password or "")] -- cgit v1.3.1