From b57468a9634a089a505a7263c68bc399eef42552 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 5 Sep 2024 12:58:18 -0700 Subject: [PATCH] test: add test for Spanish chat language option --- tests/basic/test_main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/basic/test_main.py b/tests/basic/test_main.py index ab7278b28..96949910b 100644 --- a/tests/basic/test_main.py +++ b/tests/basic/test_main.py @@ -620,6 +620,16 @@ class TestMain(TestCase): ) self.assertTrue(coder.suggest_shell_commands) + def test_chat_language_spanish(self): + with GitTemporaryDirectory(): + coder = main( + ["--chat-language", "Spanish", "--exit", "--yes"], + input=DummyInput(), + output=DummyOutput(), + return_coder=True, + ) + self.assertIn("Spanish", coder.get_system_info()) + @patch("git.Repo.init") def test_main_exit_with_git_command_not_found(self, mock_git_init): mock_git_init.side_effect = git.exc.GitCommandNotFound("git", "Command 'git' not found")