From a8af4a31091b8db93ac5723ebb86af936526d456 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 5 Jul 2024 17:33:42 -0300 Subject: [PATCH] Removed unnecessary test case for environment and settings in the help module. --- aider/tests/test_help.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/aider/tests/test_help.py b/aider/tests/test_help.py index bc97daee2..e7e534253 100644 --- a/aider/tests/test_help.py +++ b/aider/tests/test_help.py @@ -25,14 +25,6 @@ class TestHelp(unittest.TestCase): self.assertIn("Test content", result) self.assertIn("", result) - @patch('os.environ') - @patch('aider.help.Settings') - @patch('aider.help.HuggingFaceEmbedding') - def test_environment_and_settings(self, mock_hf, mock_settings, mock_environ): - Help() - mock_environ.__setitem__.assert_called_with("TOKENIZERS_PARALLELISM", "true") - self.assertEqual(mock_settings.embed_model, mock_hf.return_value) - mock_hf.assert_called_with(model_name="BAAI/bge-small-en-v1.5") if __name__ == '__main__': unittest.main()