Files
DocsMCP/tests/test_templates.py
T
2026-06-06 00:39:42 +01:00

13 lines
366 B
Python

from pathlib import Path
def test_templates_do_not_slice_filter_results_inline():
template_dir = Path("webui/app/templates")
offenders = []
for template in template_dir.glob("*.html"):
content = template.read_text()
if "| default(" in content and ")[" in content:
offenders.append(str(template))
assert offenders == []