Skip to content

Commit 2dd731a

Browse files
committed
fixup! fix: Only execute context hook when rendering templates
1 parent ab424ac commit 2dd731a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/test_extensions.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def git(*args: str | Path) -> None:
1919
Arguments:
2020
*args: The git command to run.
2121
"""
22-
subprocess.run(["git", *args], check=True)
22+
subprocess.run(["git", *args], check=True) # noqa: S603,S607
2323

2424

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

111-
copier.run_copy(str(src_path), dest_path, unsafe=True, overwrite=True, defaults=True, data={"the_question": "the_answer"})
111+
copier.run_copy(
112+
str(src_path),
113+
dest_path,
114+
unsafe=True,
115+
overwrite=True,
116+
defaults=True,
117+
data={"the_question": "the_answer"},
118+
)
112119
git("-C", dest_path, "init")
113120
git("-C", dest_path, "add", "-A", ".")
114121
git("-C", dest_path, "commit", "-m", "Initial commit")

0 commit comments

Comments
 (0)