1010TOP = Path (__file__ ).absolute ().parent .parent
1111
1212
13- def copy_project (project_path : Path , trust : bool = False , ** kwargs ):
13+ def copy_project (project_path : Path , ** kwargs ):
1414 with open (TOP / "example-answers.yml" ) as f :
1515 answers = yaml .safe_load (f )
1616 answers .update (kwargs )
@@ -20,7 +20,6 @@ def copy_project(project_path: Path, trust: bool = False, **kwargs):
2020 dst_path = project_path ,
2121 data = answers ,
2222 vcs_ref = "HEAD" ,
23- unsafe = trust ,
2423 )
2524 run_pipe ("git add ." , cwd = str (project_path ))
2625
@@ -160,7 +159,7 @@ def test_example_repo_updates(tmp_path: Path):
160159 "https://github.com/DiamondLightSource/python-copier-template-example.git"
161160 )
162161 example_path = tmp_path / "example"
163- copy_project (generated_path , trust = True )
162+ copy_project (generated_path )
164163 run_pipe (f"git clone { example_url } { example_path } " )
165164 with open (example_path / ".copier-answers.yml" ) as f :
166165 d = yaml .safe_load (f )
@@ -171,7 +170,7 @@ def test_example_repo_updates(tmp_path: Path):
171170 run ("git config user.email 'you@example.com'" )
172171 run ("git config user.name 'Your Name'" )
173172 run ("git commit -am 'Update src'" )
174- run (f"copier update --trust -- vcs-ref=HEAD --data-file { TOP } /example-answers.yml" )
173+ run (f"copier update --vcs-ref=HEAD --data-file { TOP } /example-answers.yml" )
175174 output = run (
176175 # Git directory expected to be different
177176 "diff -ur --exclude=.git "
0 commit comments