MCPcopy
hub / github.com/copier-org/copier / tpl

Function tpl

tests/test_recopy.py:16–28  ·  view source on GitHub ↗

A simple template that supports updates.

(tmp_path_factory: pytest.TempPathFactory)

Source from the content-addressed store, hash-verified

14
15@pytest.fixture(scope="module")
16def 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
31def test_recopy_discards_evolution_api(tpl: str, tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 2

build_file_treeFunction · 0.85
git_saveFunction · 0.85

Tested by

no test coverage detected