Skip to content

Commit

Permalink
- Rectify test_deeplake_vectorstore.py::test_delete
Browse files Browse the repository at this point in the history
  • Loading branch information
sounakr committed Aug 4, 2023
1 parent 5e81bcc commit bc63286
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions deeplake/core/vectorstore/test_deeplake_vectorstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,19 +581,7 @@ def test_delete(local_path, capsys):
# add data to the dataset:
vector_store.add(id=ids, embedding=embeddings, text=texts, metadata=metadatas)

output = (
f"Dataset(path='{local_path}', tensors=['embedding', 'id', 'metadata', 'text'])\n\n"
" tensor htype shape dtype compression\n"
" ------- ------- ------- ------- ------- \n"
" embedding embedding (10, 100) float32 None \n"
" id text (10, 1) str None \n"
" metadata json (10, 1) str None \n"
" text text (10, 1) str None \n"
)

vector_store.summary()
captured = capsys.readouterr()
assert output in captured.out

# delete the data in the dataset by id:
vector_store.delete(row_ids=[4, 8, 9])
Expand Down

0 comments on commit bc63286

Please sign in to comment.