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
@@ -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 ".tactile-donate-btn" in g3_css
|
||||
|
||||
# Produce & verify the Periodic Harvest -> CI/CD -> VPS Infrastructure Flow Diagram PNG
|
||||
from hyperstitionstud_io.publishing.flow_diagram import render_periodic_harvest_cicd_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()
|
||||
# Verify the Periodic Harvest -> CI/CD -> VPS Infrastructure Flow Diagram PNG exists and is valid (read-only check)
|
||||
flow_png_p = cfg_test.knowledge_graph_dir / "docs" / "periodic-harvest-cicd-to-vps-flow-diagram.png"
|
||||
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)
|
||||
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 (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
|
||||
|
||||
cu_chk = render_all_quadrant_closeups(workspace_root=cfg.workspace_root, check_only=True)
|
||||
if not cu_chk["ok"]:
|
||||
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 cu_chk["ok"] is True and not cu_chk["missing_pngs"], f"Closeup UI drift: {cu_chk}. Run hs-closeups-sync to regenerate."
|
||||
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)"
|
||||
hdr_match = re.search(r"<header>.*?</header>", home_txt, flags=re.S)
|
||||
|
||||
Reference in new issue
Block a user