From ed088960f078b6cf024684cc0654d1c210f2b9c1 Mon Sep 17 00:00:00 2001 From: ThreadDao Date: Sat, 16 Oct 2021 22:32:40 +0800 Subject: [PATCH] [skip ci] Add skipped delete case (#10040) Signed-off-by: ThreadDao --- tests/python_client/testcases/test_delete_20.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/python_client/testcases/test_delete_20.py b/tests/python_client/testcases/test_delete_20.py index 6361e61881374..2b44e857e8539 100644 --- a/tests/python_client/testcases/test_delete_20.py +++ b/tests/python_client/testcases/test_delete_20.py @@ -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