Skip to content

Commit ca06a73

Browse files
committed
test(tests/test_git.py): use the IDs tool to clearly describe each test item
1 parent acae8b6 commit ca06a73

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/test_git.py

+8-3
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)