File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import pytest
77
88
9- @pytest .mark .parametrize ("initialise_git_repository " , [True , False ])
9+ @pytest .mark .parametrize ("init " , [True , False ])
1010def 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
You can’t perform that action at this time.
0 commit comments