From 8a289d3b22c09a128cb6395f6614e05c7393be55 Mon Sep 17 00:00:00 2001 From: Timmy Date: Mon, 13 Apr 2026 15:38:28 -0400 Subject: [PATCH] [verified] test: guard index.html against merge junk Refs #1336 Refs #1338 - assert index.html has no conflict markers or stray markdown - assert cleaned single-instance blocks stay single --- tests/test_index_html_integrity.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/test_index_html_integrity.py diff --git a/tests/test_index_html_integrity.py b/tests/test_index_html_integrity.py new file mode 100644 index 00000000..ff21db6b --- /dev/null +++ b/tests/test_index_html_integrity.py @@ -0,0 +1,10 @@ +from pathlib import Path + + +def test_index_html_integrity(): + text = (Path(__file__).resolve().parents[1] / 'index.html').read_text(encoding='utf-8') + for marker in ('<<<<<<<', '=======', '>>>>>>>', '```html', '⚠�'): + assert marker not in text + assert 'index.html\n```html' not in text + for needle in ('View Contribution Policy', 'id="mem-palace-container"', 'id="mempalace-results"', 'id="memory-filter"', 'id="memory-feed"', 'id="memory-inspect-panel"', 'id="memory-connections-panel"'): + assert text.count(needle) == 1