python-jinja2/tests/smoke.py
Lukas Zachar 53acc26463 Add tmt smoke test + plan
Related: bz#1950291
2021-07-19 09:50:49 +02:00

10 lines
219 B
Python

import jinja2
TEMPLATE = "Text {{ variable }}"
environment = jinja2.Environment()
template = environment.from_string(TEMPLATE)
output = template.render(variable="demo")
assert output == "Text demo", f"got: {output}"