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