@@ -125,9 +125,7 @@ def test_falls_back_to_git_config(self):
125125 git_result = subprocess .CompletedProcess (
126126 args = [], returncode = 0 , stdout = "gituser\n " , stderr = ""
127127 )
128- with patch (
129- "extensions.subprocess.run" , side_effect = [gh_result , git_result ]
130- ):
128+ with patch ("extensions.subprocess.run" , side_effect = [gh_result , git_result ]):
131129 assert github_username () == "gituser"
132130
133131 def test_returns_empty_when_both_fail (self ):
@@ -151,9 +149,7 @@ def test_gh_cli_not_installed(self):
151149
152150 def test_both_not_installed (self ):
153151 """Test that empty string is returned when neither tool is installed."""
154- with patch (
155- "extensions.subprocess.run" , side_effect = FileNotFoundError ()
156- ):
152+ with patch ("extensions.subprocess.run" , side_effect = FileNotFoundError ()):
157153 assert github_username () == ""
158154
159155 def test_ignores_input_parameter (self ):
@@ -172,9 +168,7 @@ def test_gh_cli_empty_stdout_triggers_fallback(self):
172168 git_result = subprocess .CompletedProcess (
173169 args = [], returncode = 0 , stdout = "gituser\n " , stderr = ""
174170 )
175- with patch (
176- "extensions.subprocess.run" , side_effect = [gh_result , git_result ]
177- ):
171+ with patch ("extensions.subprocess.run" , side_effect = [gh_result , git_result ]):
178172 assert github_username () == "gituser"
179173
180174
0 commit comments