mirror of https://github.com/hwchase17/langchain
nits (#210)
use json.dump move test to integration tests (since it requires huggingface_hub)harrison/logging_to_file
parent
ae72cf84b8
commit
b94244eb12
@ -1 +0,0 @@
|
||||
"""All unit tests for Embeddings objects."""
|
@ -1,11 +0,0 @@
|
||||
"""Test HuggingFaceHub embeddings."""
|
||||
import pytest
|
||||
|
||||
from langchain.embeddings import HuggingFaceHubEmbeddings
|
||||
|
||||
|
||||
def test_huggingfacehub_embedding_invalid_repo() -> None:
|
||||
"""Test huggingfacehub embedding repo id validation."""
|
||||
# Only sentence-transformers models are currently supported.
|
||||
with pytest.raises(ValueError):
|
||||
HuggingFaceHubEmbeddings(repo_id="allenai/specter")
|
Loading…
Reference in New Issue