copier/tests/test_normal_jinja2.py
Jairo Llopis 23f78419e8
New Jinja defaults, document how to restore them
- Alter comments syntax to match project templating syntax: `[# This is a comment now #]`.
- Document and test the way to restore Jinja2 default syntax. This is not obvious otherwise.
- Update Jinja docs location.

@Tecnativa TT20357
2019-11-20 10:26:39 +00:00

11 lines
302 B
Python

import copier
from .helpers import PROJECT_TEMPLATE
def test_normal_jinja2(dst):
copier.copy(f"{PROJECT_TEMPLATE}_normal_jinja2", dst, force=True)
todo = (dst / "TODO.txt").read_text()
expected = '[[ Guybrush TODO LIST]]\n[# GROG #]\n - Become a pirate\n'
assert todo == expected