static_site_tests: ensure deterministic test ordering
- ID
fc5f1bf- date
2026-02-28 10:09:05+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
d507b13- message
static_site_tests: ensure deterministic test ordering- changed files
3 files, 7 additions, 3 deletions
Changed files
CHANGELOG.md (3022) → CHANGELOG.md (3174)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 86d5ed8..389812d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# CHANGELOG
+## v25 - 2026-02-28
+
+Change the type of `StaticSiteTestSuite.pages_to_check` from `set` to `list` to ensure consistent ordering of parametrised tests.
+
## v24 - 2026-02-28
In `StaticSiteTestSuite`, add testing with [Playwright](https://playwright.dev) that checks static websites render correctly.
src/chives/__init__.py (391) → src/chives/__init__.py (391)
diff --git a/src/chives/__init__.py b/src/chives/__init__.py
index 914e546..68123f0 100644
--- a/src/chives/__init__.py
+++ b/src/chives/__init__.py
@@ -11,4 +11,4 @@ I share across multiple sites.
"""
-__version__ = "24"
+__version__ = "25"
src/chives/static_site_tests.py (9906) → src/chives/static_site_tests.py (9907)
diff --git a/src/chives/static_site_tests.py b/src/chives/static_site_tests.py
index b5aca15..c0aae22 100644
--- a/src/chives/static_site_tests.py
+++ b/src/chives/static_site_tests.py
@@ -256,9 +256,9 @@ class StaticSiteTestSuite[M](ABC):
assert similar_tags == [], f"Found similar tags: {similar_tags}"
- pages_to_check: set[str | ParameterSet] = {
+ pages_to_check: list[str | ParameterSet] = [
pytest.param("index.html", id="homepage")
- }
+ ]
# Coverage note: these two functions are tested, but coverage can't
# find them. Because there's no tricky branching, don't worry about