We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 820ada2 commit 4f3931aCopy full SHA for 4f3931a
tests/test_cz_utils.py
@@ -1,4 +1,5 @@
1
import pytest
2
+from pytest_mock import MockFixture
3
4
from commitizen.cz import exceptions, utils
5
@@ -17,3 +18,9 @@ def test_multiple_line_breaker():
17
18
19
result = utils.multiple_line_breaker(message, "is")
20
assert result == "th\n\nthe first line | and th\n\nthe second line"
21
+
22
23
+def test_get_backup_file_path_no_project_root(mocker: MockFixture):
24
+ project_root_mock = mocker.patch("commitizen.git.find_git_project_root")
25
+ project_root_mock.return_value = None
26
+ assert utils.get_backup_file_path()
0 commit comments