diff options
| author | Dennis Fink | 2026-10-25 22:26:40 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-10-25 22:26:40 +0100 |
| commit | ce802830c37565d325ba2ecc060443550abb1955 (patch) | |
| tree | b2cdf65353b1eb28d2c8d394b0dcd24461c4db6c /tests/tasks/test_sender.py | |
| parent | a231913ab273f427697f2d27d615b495f6e160bb (diff) | |
| download | webmentions-ssg-ce802830c37565d325ba2ecc060443550abb1955.tar.gz webmentions-ssg-ce802830c37565d325ba2ecc060443550abb1955.zip | |
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.
Diffstat (limited to '')
| -rw-r--r-- | tests/tasks/test_sender.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |
