diff options
| author | Dennis Fink | 2026-11-12 23:34:46 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-12 23:37:08 +0100 |
| commit | 52fc66cb5ff19bf0def001ae50acc1b465a0b977 (patch) | |
| tree | e791fa3e6d9f9b1b6fdf697f821adc84d2a57f0b /tests/test_packaging.py | |
| parent | b439de2005b70ec3867d589d1f4c63b83441e620 (diff) | |
| download | webmentions-ssg-52fc66cb5ff19bf0def001ae50acc1b465a0b977.tar.gz webmentions-ssg-52fc66cb5ff19bf0def001ae50acc1b465a0b977.zip | |
fix(core): decouple task imports from app initialization
Keep stable lazy task handles that register against the active Huey
backend so modules can be imported before app creation and survive
backend reinitialization.
Separate package metadata and the shared blueprint from application
startup to remove import-order dependencies and keep build-time version
lookup lightweight.
Diffstat (limited to 'tests/test_packaging.py')
| -rw-r--r-- | tests/test_packaging.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_packaging.py b/tests/test_packaging.py index 34c0d72..e0b4fb1 100644 --- a/tests/test_packaging.py +++ b/tests/test_packaging.py @@ -35,3 +35,11 @@ def test_no_legacy_ratelimit_only_groups() -> None: assert not any( group.startswith("ratelimit-") for group in metadata["dependency-groups"] ) + + +def test_hatch_version_does_not_import_the_flask_package() -> None: + project_root = Path(__file__).resolve().parents[1] + metadata = tomllib.loads((project_root / "pyproject.toml").read_text()) + assert metadata["tool"]["hatch"]["version"]["path"] == ( + "webmentions_ssg/version.py" + ) |
