A simple template that supports updates.
(tmp_path_factory: pytest.TempPathFactory)
| 14 | |
| 15 | @pytest.fixture(scope="module") |
| 16 | def tpl(tmp_path_factory: pytest.TempPathFactory) -> str: |
| 17 | """A simple template that supports updates.""" |
| 18 | dst = tmp_path_factory.mktemp("tpl") |
| 19 | with local.cwd(dst): |
| 20 | build_file_tree( |
| 21 | { |
| 22 | "copier.yml": "your_name: Mario", |
| 23 | "{{ _copier_conf.answers_file }}.jinja": "{{ _copier_answers|to_nice_yaml }}", |
| 24 | "name.txt.jinja": "This is your name: {{ your_name }}.", |
| 25 | } |
| 26 | ) |
| 27 | git_save() |
| 28 | return str(dst) |
| 29 | |
| 30 | |
| 31 | def test_recopy_discards_evolution_api(tpl: str, tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected