You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
335 B
11 lines
335 B
from pathlib import Path
|
|
|
|
|
|
def test_backgrounds_template_escapes_catalog_values_before_inner_html():
|
|
template = Path("GUI/backgrounds.html").read_text(encoding="utf-8")
|
|
|
|
assert "function h(str)" in template
|
|
assert "title=\"${h(key)}\"" in template
|
|
assert "${h(key)}" in template
|
|
assert "${h(value[2])}" in template
|