Skip to content

Commit

Permalink
fixup! fix: Only execute context hook when rendering templates
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jan 28, 2025
1 parent ab424ac commit 2dd731a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/test_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def git(*args: str | Path) -> None:
Arguments:
*args: The git command to run.
"""
subprocess.run(["git", *args], check=True)
subprocess.run(["git", *args], check=True) # noqa: S603,S607


@pytest.mark.parametrize(
Expand Down Expand Up @@ -108,7 +108,14 @@ def test_update(tmp_path_factory: pytest.TempPathFactory) -> None:
git("-C", src_path, "commit", "-m", "Initial commit")
git("-C", src_path, "tag", "0.1.0")

copier.run_copy(str(src_path), dest_path, unsafe=True, overwrite=True, defaults=True, data={"the_question": "the_answer"})
copier.run_copy(
str(src_path),
dest_path,
unsafe=True,
overwrite=True,
defaults=True,
data={"the_question": "the_answer"},
)
git("-C", dest_path, "init")
git("-C", dest_path, "add", "-A", ".")
git("-C", dest_path, "commit", "-m", "Initial commit")
Expand Down

0 comments on commit 2dd731a

Please sign in to comment.