Skip to content

Commit f811492

Browse files
committed
fix: lint
1 parent 3d191be commit f811492

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

tests/test_extensions.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

tests/test_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def run_copier(tmp_path: Path, answers: dict) -> Path:
5656
"--defaults",
5757
"--force",
5858
"--trust",
59-
"--vcs-ref=main"
59+
"--vcs-ref=main",
6060
]
6161

6262
for key, value in answers.items():

0 commit comments

Comments
 (0)