From ce802830c37565d325ba2ecc060443550abb1955 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 25 Oct 2026 22:26:40 +0100 Subject: refactor(core): simplify configuration keys Remove the WEBMENTIONS_SSG prefix from application-specific configuration settings and update validators, tasks, and tests to use the shorter names. --- tests/tasks/test_sender.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/tasks/test_sender.py') diff --git a/tests/tasks/test_sender.py b/tests/tasks/test_sender.py index 6e33887..6a9afc1 100644 --- a/tests/tasks/test_sender.py +++ b/tests/tasks/test_sender.py @@ -988,7 +988,7 @@ def test_endpoint_from_html_ignores_elements_without_rel_and_non_string_href( def test_read_target_body_rejects_declared_oversized_body( app: Flask, sender_module: ModuleType ) -> None: - app.config["WEBMENTIONS_SSG_MAX_TARGET_BYTES"] = 10 + app.config["MAX_TARGET_BYTES"] = 10 response = httpx.Response(200, headers={"Content-Length": "11"}, content=b"x" * 11) @@ -1017,7 +1017,7 @@ def test_read_target_body_ignores_invalid_content_length( def test_read_target_body_rejects_streamed_oversized_body( app: Flask, sender_module: ModuleType ) -> None: - app.config["WEBMENTIONS_SSG_MAX_TARGET_BYTES"] = 10 + app.config["MAX_TARGET_BYTES"] = 10 class BodyStream(httpx.SyncByteStream): def __iter__(self): -- cgit v1.3.1