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_scanner.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_scanner.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tasks/test_scanner.py b/tests/tasks/test_scanner.py index 3de5e16..5823e9e 100644 --- a/tests/tasks/test_scanner.py +++ b/tests/tasks/test_scanner.py @@ -91,8 +91,8 @@ def write_post( def configure_scanner(app: Flask, root: Path, *, base_url: str | None = None) -> None: - app.config["WEBMENTIONS_SSG_SOURCE_DIRECTORY"] = str(root) - app.config["WEBMENTIONS_SSG_SOURCE_BASE_URL"] = base_url + app.config["SOURCE_DIRECTORY"] = str(root) + app.config["SOURCE_BASE_URL"] = base_url def test_parse_entry_returns_microformats_entry(scanner_module: ModuleType) -> None: @@ -1646,7 +1646,7 @@ def test_changed_source_url_is_rejected( def test_scan_sources_returns_when_source_directory_is_not_configured( app: Flask, scanner_module: ModuleType ) -> None: - app.config["WEBMENTIONS_SSG_SOURCE_DIRECTORY"] = None + app.config["SOURCE_DIRECTORY"] = None run_scan(app, scanner_module) |
