From 509d93b2976e353d29441a7a7b7e78ca466dc4fd Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 15 Nov 2026 20:42:20 +0100 Subject: 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. --- tests/tasks/test_scanner.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/tasks/test_scanner.py') diff --git a/tests/tasks/test_scanner.py b/tests/tasks/test_scanner.py index d16729c..00256d0 100644 --- a/tests/tasks/test_scanner.py +++ b/tests/tasks/test_scanner.py @@ -82,7 +82,7 @@ def test_manual_scan_propagates_unrelated_errors( scanner_module.manual_scan_sources.call_local() -def test_scan_tree_returns_count_and_seen_paths( +def test_reconcile_source_tree_returns_count_and_seen_paths( app: Flask, scanner_module: ModuleType, tmp_path: Path, monkeypatch: MonkeyPatch ) -> None: for name in ("good", "bad"): @@ -105,7 +105,7 @@ def test_scan_tree_returns_count_and_seen_paths( urls: dict[str, str] = {} with app.app_context(): - scan = scanner_module.scan_tree( + scan = scanner_module.reconcile_source_tree( tmp_path, BASE_URL, sources, urls, datetime.now(UTC) ) @@ -1248,7 +1248,7 @@ def test_unexpected_persistence_error_is_not_suppressed( monkeypatch.setattr( scanner_module, - "create_source", + "build_source", Mock(side_effect=RuntimeError("database failed")), ) @@ -1376,7 +1376,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["SOURCE_DIRECTORY"] = None + app.config["SITE_OUTPUT_DIRECTORY"] = None run_scan(app, scanner_module) -- cgit v1.3.1