Fix sources template rendering

This commit is contained in:
george
2026-06-06 00:39:42 +01:00
parent 64a4996b70
commit 54986cda99
2 changed files with 14 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
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 == []