Skip to content

Commit 127fd27

Browse files
committed
Shorter parameter name in obvious context.
1 parent 76cdd51 commit 127fd27

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

tests/test_git_init.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,15 @@
66
import pytest
77

88

9-
@pytest.mark.parametrize("initialise_git_repository", [True, False])
9+
@pytest.mark.parametrize("init", [True, False])
1010
def test_initialisation_of_git_repo(
11-
initialise_git_repository: bool, # noqa: FBT001
11+
init: bool, # noqa: FBT001
1212
default_config_with: typing.Callable,
1313
generate_package: typing.Callable,
1414
) -> None:
1515
"""Checks to see if git was correctly initialised if desired."""
16-
config = default_config_with(
17-
"initialise_git_repository", str(initialise_git_repository)
18-
)
19-
2016
# Run cookiecutter with initialise_git_repository
17+
config = default_config_with("initialise_git_repository", str(init))
2118
result, test_project_dir = generate_package(config=config)
2219

2320
# check if git is initialised
@@ -32,7 +29,7 @@ def test_initialisation_of_git_repo(
3229
text=True,
3330
)
3431

35-
if not initialise_git_repository:
32+
if not init:
3633
# should not have found git
3734
assert "fatal: not a git repository" in git_status.stderr
3835
return # nothing more to test

0 commit comments

Comments
 (0)