mirror of
https://github.com/copier-org/copier.git
synced 2025-05-28 10:31:21 +00:00
- 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
11 lines
302 B
Python
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
|