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

Sign up
Appearance settings

Commit 6148bf1

Browse files
ttw225Lee-W
authored andcommitted
test(tests/test_git.py): use the IDs tool to clearly describe each test item
1 parent 3519ae7 commit 6148bf1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎tests/test_git.py‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,20 @@ def test_create_tag_with_message(tmp_commitizen_project):
301301
(
302302
"/tmp/temp file",
303303
'git commit --signoff -F "/tmp/temp file"',
304-
),# File contains spaces
304+
),
305305
(
306306
"/tmp dir/temp file",
307307
'git commit --signoff -F "/tmp dir/temp file"',
308-
),# Path contains spaces
308+
),
309309
(
310310
"/tmp/tempfile",
311311
'git commit --signoff -F "/tmp/tempfile"',
312-
), # Path does not contain spaces
312+
),
313+
],
314+
ids=[
315+
"File contains spaces",
316+
"Path contains spaces",
317+
"Path does not contain spaces",
313318
],
314319
)
315320
def test_commit_with_spaces_in_path(mocker, file_path, expected_cmd):

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /