Skip to content

Commit

Permalink
chore: Remove unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
nickderobertis committed Dec 20, 2024
1 parent f564f3d commit ef9a7ef
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions libs/redis/tests/unit_tests/test_vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,6 @@ def test_max_marginal_relevance_search(
assert len(results) == 2
assert all(isinstance(doc, Document) for doc in results)

def test_get_by_ids(self, vector_store: RedisVectorStore) -> None:
doc_1_id = "doc-1"
doc_1_content = "Hello, world!"
docs = [
Document(page_content=doc_1_content, id=doc_1_id),
Document(page_content="Test document", id="doc-2"),
]
vector_store.add_documents(docs)
results = vector_store.get_by_ids([doc_1_id])
assert len(results) == 1
assert isinstance(results[0], Document)
assert results[0].page_content == doc_1_content

def test_delete(self, vector_store: RedisVectorStore) -> None:
keys = vector_store.add_texts(["Hello, world!", "Test document"])
result = vector_store.delete(keys)
Expand Down

0 comments on commit ef9a7ef

Please sign in to comment.