From aecb7ea639101b3ff84bebc2df18e7fe065ee8bc Mon Sep 17 00:00:00 2001 From: NicoYuan1986 <109071306+NicoYuan1986@users.noreply.github.com> Date: Sat, 14 Jan 2023 14:47:41 +0800 Subject: [PATCH] Skip unresolved cases and reslove warnings (#21677) Signed-off-by: nico --- tests/python_client/testcases/test_collection.py | 1 + tests/python_client/testcases/test_insert.py | 4 ++-- tests/python_client/testcases/test_partition.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/python_client/testcases/test_collection.py b/tests/python_client/testcases/test_collection.py index 2697a69204..c157f4fa09 100644 --- a/tests/python_client/testcases/test_collection.py +++ b/tests/python_client/testcases/test_collection.py @@ -2243,6 +2243,7 @@ class TestLoadCollection(TestcaseBase): yield request.param @pytest.mark.tags(CaseLabel.L2) + @pytest.mark.xfail("issue #21618") def test_load_replica_non_number(self, get_non_number_replicas): """ target: test load collection with non-number replicas diff --git a/tests/python_client/testcases/test_insert.py b/tests/python_client/testcases/test_insert.py index fdf4daa79b..4182dee322 100644 --- a/tests/python_client/testcases/test_insert.py +++ b/tests/python_client/testcases/test_insert.py @@ -276,7 +276,7 @@ class TestInsertParams(TestcaseBase): nb = 10 df = cf.gen_default_dataframe_data(nb) new_float_value = pd.Series(data=[float(i) for i in range(nb)], dtype="float64") - df.iloc[:, 1] = new_float_value + df[df.columns[1]] = new_float_value error = {ct.err_code: 1, ct.err_msg: 'The data fields number is not match with schema.'} collection_w.insert(data=df, check_task=CheckTasks.err_res, check_items=error) @@ -1137,7 +1137,7 @@ class TestInsertString(TestcaseBase): nb = 10 df = cf.gen_default_dataframe_data(nb) new_float_value = pd.Series(data=[float(i) for i in range(nb)], dtype="float64") - df.iloc[:, 2] = new_float_value + df[df.columns[2]] = new_float_value error = {ct.err_code: 1, ct.err_msg: "The data type of field varchar doesn't match, expected: VARCHAR, got DOUBLE"} collection_w.insert(data=df, check_task=CheckTasks.err_res, check_items=error) diff --git a/tests/python_client/testcases/test_partition.py b/tests/python_client/testcases/test_partition.py index 09c0ff95f6..f99e477ded 100644 --- a/tests/python_client/testcases/test_partition.py +++ b/tests/python_client/testcases/test_partition.py @@ -316,6 +316,7 @@ class TestPartitionParams(TestcaseBase): yield request.param @pytest.mark.tags(CaseLabel.L2) + @pytest.mark.xfail("issue #21618") def test_load_partition_replica_non_number(self, get_non_number_replicas): """ target: test load partition with non-number replicas