From fc961658179fb4081213030c38e8f6af88b301ed Mon Sep 17 00:00:00 2001 From: del-zhenwu <56623710+del-zhenwu@users.noreply.github.com> Date: Sat, 25 Apr 2020 18:56:52 +0800 Subject: [PATCH] Update case (#2113) Signed-off-by: zw --- tests/milvus_python_test/test_partition.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/milvus_python_test/test_partition.py b/tests/milvus_python_test/test_partition.py index aa37c3d4..5814a3b7 100644 --- a/tests/milvus_python_test/test_partition.py +++ b/tests/milvus_python_test/test_partition.py @@ -74,8 +74,8 @@ class TestCreateBase: expected: status ok ''' tag_name = None - status = connect.create_partition(collection, tag_name) - assert not status.OK() + with pytest.raises(Exception) as e: + status = connect.create_partition(collection, tag_name) def test_create_different_partition_tags(self, connect, collection): ''' -- GitLab