Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e71c27

Browse files
committed
Fix the name of the "executes git" test
That test is not testing whether or not a shell is used (nor does it need to test that), but just whether the library actually runs git, passes an argument to it, and returns text from its stdout.
1 parent f9a3b83 commit 5e71c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_it_transforms_kwargs_into_git_command_arguments(self):
7373
res = self.git.transform_kwargs(**{"s": True, "t": True})
7474
self.assertEqual({"-s", "-t"}, set(res))
7575

76-
def test_it_executes_git_to_shell_and_returns_result(self):
76+
def test_it_executes_git_and_returns_result(self):
7777
self.assertRegex(self.git.execute(["git", "version"]), r"^git version [\d\.]{2}.*$")
7878

7979
def test_it_executes_git_not_from_cwd(self):

0 commit comments

Comments
 (0)