mirror of
https://github.com/copier-org/copier.git
synced 2025-05-07 08:22:56 +00:00
This is redundant with pytest's native `tmp_path` fixture, so we use that one instead now.
11 lines
317 B
Python
11 lines
317 B
Python
import copier
|
|
|
|
from .helpers import PROJECT_TEMPLATE
|
|
|
|
|
|
def test_normal_jinja2(tmp_path):
|
|
copier.copy(f"{PROJECT_TEMPLATE}_normal_jinja2", tmp_path, force=True)
|
|
todo = (tmp_path / "TODO.txt").read_text()
|
|
expected = "[[ Guybrush TODO LIST]]\n[# GROG #]\n - Become a pirate\n"
|
|
assert todo == expected
|