Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliAlex committed Oct 7, 2024
1 parent 42a56c5 commit 7aa5bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/inference/test_hugging_face_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def test_initialize_huggingface_model_with_invalid_properties(self):
with self.subTest(test_case=test_case):
with self.assertRaises(InvalidModelPropertiesError) as excinfo:
_ = HuggingFaceModel(test_case, "cpu", {})
self.assertIn("Invalid model properties for the 'hf' model.", str(excinfo.exception))
self.assertIn("Invalid model properties: ", str(excinfo.exception))

def test_hf_e5_base_v2_embeddings_load_from_hf(self):
"""A test to ensure the embeddings are generated correctly for the default text model, loading from
Expand Down

0 comments on commit 7aa5bef

Please sign in to comment.