aboutsummaryrefslogtreecommitdiff
path: root/tests/test_auth.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_auth.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_auth.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_auth.py b/tests/test_auth.py
index e026e45..bc951b9 100644
--- a/tests/test_auth.py
+++ b/tests/test_auth.py
@@ -22,9 +22,7 @@ def test_user_loader_is_registered(app: Flask) -> None:
assert AUTH._user_callback is load_user
-def test_dummy_password_hash_is_lazily_cached(
- monkeypatch: pytest.MonkeyPatch,
-) -> None:
+def test_dummy_password_hash_is_lazily_cached(monkeypatch: pytest.MonkeyPatch) -> None:
generated_passwords: list[str] = []
def fake_generate_password_hash(password: str) -> str: