Skip to content

Commit 6eaf75f

Browse files
committed
test: add test for commit-language option
1 parent 91f34e3 commit 6eaf75f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/basic/test_main.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,16 @@ def test_chat_language_spanish(self):
10351035
system_info = coder.get_platform_info()
10361036
self.assertIn("Spanish", system_info)
10371037

1038+
def test_commit_language_japanese(self):
1039+
with GitTemporaryDirectory():
1040+
coder = main(
1041+
["--commit-language", "japanese", "--exit", "--yes"],
1042+
input=DummyInput(),
1043+
output=DummyOutput(),
1044+
return_coder=True,
1045+
)
1046+
self.assertIn("japanese", coder.commit_language)
1047+
10381048
@patch("git.Repo.init")
10391049
def test_main_exit_with_git_command_not_found(self, mock_git_init):
10401050
mock_git_init.side_effect = git.exc.GitCommandNotFound("git", "Command 'git' not found")

0 commit comments

Comments
 (0)