Skip to content

Commit

Permalink
test(tests/test_git.py): use the IDs tool to clearly describe each te…
Browse files Browse the repository at this point in the history
…st item
  • Loading branch information
ttw225 authored and Lee-W committed Mar 30, 2024
1 parent 3519ae7 commit 6148bf1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,15 +301,20 @@ def test_create_tag_with_message(tmp_commitizen_project):
(
"/tmp/temp file",
'git commit --signoff -F "/tmp/temp file"',
), # File contains spaces
),
(
"/tmp dir/temp file",
'git commit --signoff -F "/tmp dir/temp file"',
), # Path contains spaces
),
(
"/tmp/tempfile",
'git commit --signoff -F "/tmp/tempfile"',
), # Path does not contain spaces
),
],
ids=[
"File contains spaces",
"Path contains spaces",
"Path does not contain spaces",
],
)
def test_commit_with_spaces_in_path(mocker, file_path, expected_cmd):
Expand Down

0 comments on commit 6148bf1

Please sign in to comment.