Refactor test_core_suite.py to be 100% read-only and pure (removing auto-regeneration of flow diagrams and quadrant closeups during test runs)
This commit is contained in:
1 parent
ab5c4f57a3
commit
4d8526438b
2 files changed
+5
-14
No files matched your search
@@ -4,7 +4,7 @@
|
|||||||
> **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)**
|
> **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)**
|
||||||
> - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/)
|
> - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/)
|
||||||
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 1 tracked module/artifact surface(s)
|
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 1 tracked module/artifact surface(s)
|
||||||
> - **Touched Files / Surfaces:** `deploy/sync-vps-repos.sh`
|
> - **Touched Files / Surfaces:** `tests/test_core_suite.py`
|
||||||
> - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
|
> - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
|
||||||
<!-- HS-COMMIT-STATUS:END -->
|
<!-- HS-COMMIT-STATUS:END -->
|
||||||
|
|
||||||
|
|||||||
@@ -765,14 +765,9 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
assert ".btn-donate-pill" in g3_css and "border-radius: 999px !important;" in g3_css
|
assert ".btn-donate-pill" in g3_css and "border-radius: 999px !important;" in g3_css
|
||||||
assert ".tactile-donate-btn" in g3_css
|
assert ".tactile-donate-btn" in g3_css
|
||||||
|
|
||||||
# Produce & verify the Periodic Harvest -> CI/CD -> VPS Infrastructure Flow Diagram PNG
|
# Verify the Periodic Harvest -> CI/CD -> VPS Infrastructure Flow Diagram PNG exists and is valid (read-only check)
|
||||||
from hyperstitionstud_io.publishing.flow_diagram import render_periodic_harvest_cicd_flow_diagram_png
|
flow_png_p = cfg_test.knowledge_graph_dir / "docs" / "periodic-harvest-cicd-to-vps-flow-diagram.png"
|
||||||
|
|
||||||
flow_res = render_periodic_harvest_cicd_flow_diagram_png()
|
|
||||||
flow_png_p = Path(flow_res["png_path"])
|
|
||||||
assert flow_png_p == (cfg_test.knowledge_graph_dir / "docs" / "periodic-harvest-cicd-to-vps-flow-diagram.png").resolve()
|
|
||||||
assert flow_png_p.is_file() and flow_png_p.read_bytes()[:8] == b"\x89PNG\r\n\x1a\n"
|
assert flow_png_p.is_file() and flow_png_p.read_bytes()[:8] == b"\x89PNG\r\n\x1a\n"
|
||||||
assert flow_res["dimensions"] == [1800, 1280] and flow_res["breach_count"] == 0
|
|
||||||
|
|
||||||
# Verify Archive Rotator (Gematria-Pipeline Immunity, Richness Parity, .md-only 1x bundle, require_companion_md=True, --archive-inactive & Git citation fallback)
|
# Verify Archive Rotator (Gematria-Pipeline Immunity, Richness Parity, .md-only 1x bundle, require_companion_md=True, --archive-inactive & Git citation fallback)
|
||||||
from hyperstitionstud_io.publishing.archive_rotator import (
|
from hyperstitionstud_io.publishing.archive_rotator import (
|
||||||
@@ -1192,15 +1187,11 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
):
|
):
|
||||||
assert q_img in home_txt, f"Missing quadrant closeup {q_img} on homepage"
|
assert q_img in home_txt, f"Missing quadrant closeup {q_img} on homepage"
|
||||||
assert (cfg.core_dir / "site" / q_img).is_file()
|
assert (cfg.core_dir / "site" / q_img).is_file()
|
||||||
# Verify hs-closeups-sync automatic UI element fingerprint & closeup parity
|
# Verify hs-closeups-sync automatic UI element fingerprint & closeup parity (strict check-only, zero working tree mutation)
|
||||||
from hyperstitionstud_io.publishing.closeups_sync import render_all_quadrant_closeups
|
from hyperstitionstud_io.publishing.closeups_sync import render_all_quadrant_closeups
|
||||||
|
|
||||||
cu_chk = render_all_quadrant_closeups(workspace_root=cfg.workspace_root, check_only=True)
|
cu_chk = render_all_quadrant_closeups(workspace_root=cfg.workspace_root, check_only=True)
|
||||||
if not cu_chk["ok"]:
|
assert cu_chk["ok"] is True and not cu_chk["missing_pngs"], f"Closeup UI drift: {cu_chk}. Run hs-closeups-sync to regenerate."
|
||||||
cu_sync = render_all_quadrant_closeups(workspace_root=cfg.workspace_root, force=False, check_only=False)
|
|
||||||
assert cu_sync["ok"] is True
|
|
||||||
cu_chk = render_all_quadrant_closeups(workspace_root=cfg.workspace_root, check_only=True)
|
|
||||||
assert cu_chk["ok"] is True and not cu_chk["missing_pngs"], f"Closeup UI drift: {cu_chk}"
|
|
||||||
assert home_txt.count('class="closeup-tab-btn"') == 11, "Expected 11 interactive .closeup-tab-btn tabs across the 4 quadrants"
|
assert home_txt.count('class="closeup-tab-btn"') == 11, "Expected 11 interactive .closeup-tab-btn tabs across the 4 quadrants"
|
||||||
assert home_txt.count('class="closeup-tab-btn"') <= 12, "Strategy 6A: Homepage must never exceed 3 chamfered tabs per quadrant (12 total)"
|
assert home_txt.count('class="closeup-tab-btn"') <= 12, "Strategy 6A: Homepage must never exceed 3 chamfered tabs per quadrant (12 total)"
|
||||||
hdr_match = re.search(r"<header>.*?</header>", home_txt, flags=re.S)
|
hdr_match = re.search(r"<header>.*?</header>", home_txt, flags=re.S)
|
||||||
|
|||||||
Reference in new issue
Block a user