aboutsummaryrefslogtreecommitdiff
path: root/tests/test_packaging.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_packaging.py')
-rw-r--r--tests/test_packaging.py8
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"
+ )