@@ -35,7 +35,7 @@ def test_commit(config, mocker: MockFixture):
3535 }
3636
3737 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 )
3939 success_mock = mocker .patch ("commitizen.out.success" )
4040
4141 commands .Commit (config , {})()
@@ -45,7 +45,7 @@ def test_commit(config, mocker: MockFixture):
4545@pytest .mark .usefixtures ("staging_is_clean" )
4646def test_commit_retry_fails_no_backup (config , mocker : MockFixture ):
4747 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 )
4949
5050 with pytest .raises (NoCommitBackupError ) as excinfo :
5151 commands .Commit (config , {"retry" : True })()
@@ -66,7 +66,7 @@ def test_commit_retry_works(config, mocker: MockFixture):
6666 }
6767
6868 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 )
7070 error_mock = mocker .patch ("commitizen.out.error" )
7171
7272 with pytest .raises (CommitError ):
@@ -80,7 +80,7 @@ def test_commit_retry_works(config, mocker: MockFixture):
8080
8181 # Previous commit failed, so retry should pick up the backup commit
8282 # 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 )
8484 success_mock = mocker .patch ("commitizen.out.success" )
8585
8686 commands .Commit (config , {"retry" : True })()
@@ -121,7 +121,7 @@ def test_commit_command_with_signoff_option(config, mocker: MockFixture):
121121 }
122122
123123 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 )
125125 success_mock = mocker .patch ("commitizen.out.success" )
126126
127127 commands .Commit (config , {"signoff" : True })()
0 commit comments