Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 712325c

Browse filesBrowse files
committed
Fix git test
1 parent 6d10918 commit 712325c
Copy full SHA for 712325c

File tree

Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed

‎tests/test_git_init.py

Copy file name to clipboardExpand all lines: tests/test_git_init.py
+2-6Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ def test_initialisation_of_git_repo(
2929
git_status = subprocess.run( # noqa: S603
3030
[ # noqa: S607
3131
"git",
32-
"-C",
33-
f"{test_project_dir}",
32+
f"--git-dir={test_project_dir}",
3433
"status",
3534
],
3635
capture_output=True,
@@ -40,10 +39,7 @@ def test_initialisation_of_git_repo(
4039

4140
if not initialise_git_repository:
4241
# 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-
)
42+
assert "fatal: not a git repository" in git_status.stderr
4743
return # nothing more to test
4844

4945
# git status should succeed

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.