Skip to content

Commit

Permalink
rm unused path in generated fixture
Browse files Browse the repository at this point in the history
Co-authored-by: Moritz E. Beber <[email protected]>
  • Loading branch information
sneakers-the-rat and Midnighter committed Oct 31, 2024
1 parent 19be5a5 commit 693f392
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_template_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ def answers() -> dict[str, str]:
def generated(tmp_path: Path, answers: dict[str, str]) -> Callable[..., Path]:
"""Fixture closure to generate a template project, overriding passed data values."""
def _generated(**kwargs) -> Path:
out_path = tmp_path
run_copy(
src_path=str(TEMPLATE),
dst_path=out_path,
dst_path=tmp_path,
vcs_ref="HEAD",
data={
**answers,
Expand All @@ -92,9 +91,9 @@ def _generated(**kwargs) -> Path:
defaults=True,
)

init_git(out_path)
init_git(tmp_path)

return out_path
return tmp_path
return _generated


Expand Down

0 comments on commit 693f392

Please sign in to comment.