@@ -35,7 +35,7 @@ def test_commit(config, mocker: MockFixture):
35
35
}
36
36
37
37
commit_mock = mocker .patch ("commitizen.git.commit" )
38
- commit_mock .return_value = cmd .Command ("success" , "" , "" , "" , 0 )
38
+ commit_mock .return_value = cmd .Command ("success" , "" , b "" , b "" , 0 )
39
39
success_mock = mocker .patch ("commitizen.out.success" )
40
40
41
41
commands .Commit (config , {})()
@@ -45,7 +45,7 @@ def test_commit(config, mocker: MockFixture):
45
45
@pytest .mark .usefixtures ("staging_is_clean" )
46
46
def test_commit_retry_fails_no_backup (config , mocker : MockFixture ):
47
47
commit_mock = mocker .patch ("commitizen.git.commit" )
48
- commit_mock .return_value = cmd .Command ("success" , "" , "" , "" , 0 )
48
+ commit_mock .return_value = cmd .Command ("success" , "" , b "" , b "" , 0 )
49
49
50
50
with pytest .raises (NoCommitBackupError ) as excinfo :
51
51
commands .Commit (config , {"retry" : True })()
@@ -66,7 +66,7 @@ def test_commit_retry_works(config, mocker: MockFixture):
66
66
}
67
67
68
68
commit_mock = mocker .patch ("commitizen.git.commit" )
69
- commit_mock .return_value = cmd .Command ("" , "error" , "" , "" , 9 )
69
+ commit_mock .return_value = cmd .Command ("" , "error" , b "" , b "" , 9 )
70
70
error_mock = mocker .patch ("commitizen.out.error" )
71
71
72
72
with pytest .raises (CommitError ):
@@ -80,7 +80,7 @@ def test_commit_retry_works(config, mocker: MockFixture):
80
80
81
81
# Previous commit failed, so retry should pick up the backup commit
82
82
# commit_mock = mocker.patch("commitizen.git.commit")
83
- commit_mock .return_value = cmd .Command ("success" , "" , "" , "" , 0 )
83
+ commit_mock .return_value = cmd .Command ("success" , "" , b "" , b "" , 0 )
84
84
success_mock = mocker .patch ("commitizen.out.success" )
85
85
86
86
commands .Commit (config , {"retry" : True })()
@@ -121,7 +121,7 @@ def test_commit_command_with_signoff_option(config, mocker: MockFixture):
121
121
}
122
122
123
123
commit_mock = mocker .patch ("commitizen.git.commit" )
124
- commit_mock .return_value = cmd .Command ("success" , "" , "" , "" , 0 )
124
+ commit_mock .return_value = cmd .Command ("success" , "" , b "" , b "" , 0 )
125
125
success_mock = mocker .patch ("commitizen.out.success" )
126
126
127
127
commands .Commit (config , {"signoff" : True })()
0 commit comments