copier/tests/test_normal_jinja2.py
Jairo Llopis 823f3a1935 Remove dst fixture
This is redundant with pytest's native `tmp_path` fixture, so we use that one instead now.
2020-06-23 07:58:03 +00:00

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