Skip to content

Commit 3e14c76

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

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/test_extensions.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ def git(*args: str | Path) -> None:
1919
Arguments:
2020
*args: The git command to run.
2121
"""
22-
subprocess.run(["git", *args], check=True) # noqa: S603,S607
22+
subprocess.run( # noqa: S603
23+
["git", *args], # noqa: S607
24+
check=True,
25+
env={
26+
"GIT_AUTHOR_NAME": "Copier Test",
27+
"GIT_AUTHOR_EMAIL": "copier@test",
28+
},
29+
)
2330

2431

2532
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)