Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Apr 5, 2024
1 parent 78a6205 commit 7aa1572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def mock_embedding_generation(json, **kwargs):
class TestHuggingFaceAPITextEmbedder:
def test_init_invalid_api_type(self):
with pytest.raises(ValueError):
HuggingFaceAPITextEmbedder(api_type="invalid_api_type")
HuggingFaceAPITextEmbedder(api_type="invalid_api_type", api_params={})

def test_init_serverless(self, mock_check_valid_model):
model = "BAAI/bge-small-en-v1.5"
Expand Down

0 comments on commit 7aa1572

Please sign in to comment.