We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d10918 commit 712325cCopy full SHA for 712325c
tests/test_git_init.py
@@ -29,8 +29,7 @@ def test_initialisation_of_git_repo(
29
git_status = subprocess.run( # noqa: S603
30
[ # noqa: S607
31
"git",
32
- "-C",
33
- f"{test_project_dir}",
+ f"--git-dir={test_project_dir}",
34
"status",
35
],
36
capture_output=True,
@@ -40,10 +39,7 @@ def test_initialisation_of_git_repo(
40
39
41
if not initialise_git_repository:
42
# should not have found git
43
- assert (
44
- git_status.stderr
45
- == "fatal: not a git repository (or any of the parent directories): .git\n"
46
- )
+ assert "fatal: not a git repository" in git_status.stderr
47
return # nothing more to test
48
49
# git status should succeed
0 commit comments