aboutsummaryrefslogtreecommitdiff
path: root/tests/views/test_session.py
diff options
context:
space:
mode:
authorDennis Fink2026-11-15 20:42:20 +0100
committerDennis Fink2026-11-15 20:42:20 +0100
commit509d93b2976e353d29441a7a7b7e78ca466dc4fd (patch)
tree753e637aefabd4293f808addbf9c310eaf0aa552 /tests/views/test_session.py
parentc74feda222745ab7cca8993df83d9ea5f9d07e5b (diff)
downloadwebmentions-ssg-509d93b2976e353d29441a7a7b7e78ca466dc4fd.tar.gz
webmentions-ssg-509d93b2976e353d29441a7a7b7e78ca466dc4fd.zip
refactor(core)!: standardize application terminology
Rename configuration keys, task helpers, forms, network utilities, and view endpoints to make their responsibilities and domains more explicit. Align source-management routes and templates with the new terminology and rename the target-matching module and related task abstractions consistently. BREAKING CHANGE: configuration keys have been renamed and sent-source routes move from `/sent` to `/sources`, with corresponding blueprint endpoint changes.
Diffstat (limited to '')
-rw-r--r--tests/views/test_session.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/views/test_session.py b/tests/views/test_session.py
index a91a6b2..a2d3268 100644
--- a/tests/views/test_session.py
+++ b/tests/views/test_session.py
@@ -434,3 +434,10 @@ def test_logout_ends_session(app: Flask, client: FlaskClient) -> None:
protected_response = client.get("/received")
assert protected_response.status_code == HTTPStatus.FOUND
assert "/login" in protected_response.headers["Location"]
+
+
+def test_index_redirects_to_received(client: FlaskClient) -> None:
+ response = client.get("/")
+
+ assert response.status_code == HTTPStatus.FOUND
+ assert response.headers["Location"].endswith("/received")