[skip ci] Add skipped delete case (#9990)

Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
pull/10000/head
ThreadDao 2021-10-15 20:33:07 +08:00 committed by GitHub
parent 268f730452
commit e4c755583e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

View File

@ -98,6 +98,35 @@ class TestDeleteParams(TestcaseBase):
collection_w.delete(expr)
assert collection_w.num_entities == ct.default_nb
@pytest.mark.skip(reason="Delete function is not implemented")
@pytest.mark.tags(CaseLabel.L1)
def test_delete_expr_single(self):
"""
target: test delete with one value
method: delete with expr: "id in [0]"
expected: Describe num entities by one
"""
# init collection with tmp_nb default data
collection_w = self.init_collection_general(prefix, nb=tmp_nb, insert_data=True)[0]
expr = f'{ct.default_int64_field_name} in {[0]}'
collection_w.delete(expr)
assert collection_w.num_entities == tmp_nb - 1
@pytest.mark.skip(reason="Delete function is not implemented")
@pytest.mark.tags(CaseLabel.L1)
def test_delete_expr_all_values(self):
"""
target: test delete with all values
method: delete with expr: "id in [all]"
expected: num entities becomes zero
"""
# init collection with default_nb default data
collection_w, _, _, ids = self.init_collection_general(prefix, insert_data=True)
expr = f'{ct.default_int64_field_name} in {ids[0]}'
collection_w.delete(expr)
assert collection_w.num_entities == 0
assert collection_w.is_empty
@pytest.mark.skip(reason="Waiting for development")
class TestDeleteOperation(TestcaseBase):