[skip ci] Add test comments (#9197)

Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
This commit is contained in:
binbin 2021-10-04 13:30:07 +08:00 committed by GitHub
parent 6fccd87fd4
commit ca318fd459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1141,6 +1141,11 @@ class TestInsertInvalidBinary(object):
@pytest.mark.tags(CaseLabel.L2)
def test_insert_with_invalid_field_name(self, connect, binary_collection, get_field_name):
"""
target: test insert with invalid field name
method: insert with invalid field name
expected: raise exception
"""
tmp_entity = update_field_name(copy.deepcopy(default_binary_entity), "int64", get_field_name)
with pytest.raises(Exception):
connect.insert(binary_collection, tmp_entity)