mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
Removed unnecessary test case for environment and settings in the help module.
This commit is contained in:
parent
dd92de7787
commit
a8af4a3109
1 changed files with 0 additions and 8 deletions
|
@ -25,14 +25,6 @@ class TestHelp(unittest.TestCase):
|
|||
self.assertIn("Test content", result)
|
||||
self.assertIn("</doc>", 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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue