From f3c376fe9db1a7091dc5c31bd8731d5bf14cdcac Mon Sep 17 00:00:00 2001 From: ploush Date: Sun, 29 Nov 2026 22:01:00 +0100 Subject: [PATCH] upgrade 1.4.0 correction de bug --- tests/unitaires/test_modules_js.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/unitaires/test_modules_js.py b/tests/unitaires/test_modules_js.py index 18bce05..69436f4 100644 --- a/tests/unitaires/test_modules_js.py +++ b/tests/unitaires/test_modules_js.py @@ -63,11 +63,14 @@ def test_package_includes_every_static_file(): from ..outils import RACINE patterns = tomllib.loads((RACINE / "pyproject.toml").read_text())["tool"]["setuptools"]["package-data"]["shortstats"] + # l'arborescence source, pas HERE : installé hors mode éditable (image Docker), + # HERE vise la copie de site-packages, qui n'a déjà que les fichiers retenus package = RACINE / "src" / "shortstats" - for path in (HERE / "static").rglob("*"): + web = package / "web" + for path in (web / "static").rglob("*"): if path.is_file() and path.parent.name != "__pycache__" and not path.name.endswith(".LEGAL.txt"): rel = path.relative_to(package).as_posix() assert any(fnmatch.fnmatchcase(rel, p) and rel.count("/") == p.count("/") for p in patterns), rel - for path in (HERE / "templates").glob("*.html"): + for path in (web / "templates").glob("*.html"): rel = path.relative_to(package).as_posix() assert any(fnmatch.fnmatchcase(rel, p) for p in patterns), rel