Skip to content

Commit a049063

Browse files
authored
Fix failing test (#121)
Related to #87
1 parent 491e951 commit a049063

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

langchain_weaviate/_math.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Math utils."""
2+
23
import logging
34
from typing import List, Optional, Tuple, Union
45

tests/integration_tests/fake_embeddings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Fake Embedding class for testing purposes."""
2+
23
import math
34
from typing import List
45

tests/integration_tests/test_vectorstores.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test Weaviate functionality."""
2+
23
import logging
34
import os
45
import re
@@ -690,7 +691,8 @@ def test_documents_with_many_properties(weaviate_client, embedding_openai):
690691
docsearch = WeaviateVectorStore(
691692
client=weaviate_client,
692693
index_name=index_name,
693-
text_key=text_key,
694+
# in default schema, "page_content" is stored in "text" property
695+
text_key="text",
694696
embedding=embedding_openai,
695697
)
696698

0 commit comments

Comments
 (0)