Skip to content

Commit

Permalink
[skip ci] Add skipped delete case (milvus-io#10040)
Browse files Browse the repository at this point in the history
Signed-off-by: ThreadDao <[email protected]>
  • Loading branch information
ThreadDao authored Oct 16, 2021
1 parent 0e744af commit ed08896
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/python_client/testcases/test_delete_20.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,18 @@ def test_delete_after_index(self):
collection_w.delete(tmp_expr)
assert collection_w.num_entities == tmp_nb - 1
assert collection_w.has_index()

@pytest.mark.skip(reason="Delete function is not implemented")
@pytest.mark.tags(CaseLabel.L1)
def test_delete_query(self):
"""
target: test delete and query
method: query entity after it was deleted
expected: query result is empty
"""
# init collection with nb default data
collection_w = self.init_collection_general(prefix, nb=tmp_nb, insert_data=True)[0]
# assert delete successfully
collection_w.delete(expr=tmp_expr)
res = collection_w.query(expr=tmp_expr)[0]
assert len(res) == 0

0 comments on commit ed08896

Please sign in to comment.