Code Duplication    Length = 10-10 lines in 4 locations

tests/milvus_python_test/entity/test_list_id_in_segment.py 1 location

@@ 416-425 (lines=10) @@
413
        for i in range(10):
414
            assert vector_ids[i] == ids[i]
415
416
    @pytest.fixture(
417
        scope="function",
418
        params=gen_simple_index()
419
    )
420
    def get_jaccard_index(self, request, connect):
421
        logging.getLogger().info(request.param)
422
        if request.param["index_type"] == IndexType.IVFLAT or request.param["index_type"] == IndexType.FLAT:
423
            return request.param
424
        else:
425
            pytest.skip("Skip index Temporary")
426
427
    @pytest.mark.timeout(GET_TIMEOUT)
428
    def test_list_id_in_segment_with_index_A(self, connect, jac_collection, get_jaccard_index):

tests/milvus_python_test/collection/test_collection_count.py 1 location

@@ 393-402 (lines=10) @@
390
    generate valid create_index params
391
    """
392
393
    @pytest.fixture(
394
        scope="function",
395
        params=gen_simple_index()
396
    )
397
    def get_jaccard_index(self, request, connect):
398
        logging.getLogger().info(request.param)
399
        if request.param["index_type"] == IndexType.IVFLAT or request.param["index_type"] == IndexType.FLAT:
400
            return request.param
401
        else:
402
            pytest.skip("Skip index Temporary")
403
404
    def test_collection_rows_count(self, connect, jac_collection, insert_nb):
405
        '''

tests/milvus_python_test/test_index.py 1 location

@@ 1256-1265 (lines=10) @@
1253
                pytest.skip("ivfpq not support in GPU mode")
1254
        return request.param
1255
1256
    @pytest.fixture(
1257
        scope="function",
1258
        params=gen_simple_index()
1259
    )
1260
    def get_jaccard_index(self, request, connect):
1261
        logging.getLogger().info(request.param)
1262
        if request.param["index_type"] == IndexType.IVFLAT or request.param["index_type"] == IndexType.FLAT:
1263
            return request.param
1264
        else:
1265
            pytest.skip("Skip index Temporary")
1266
1267
    """
1268
    ******************************************************************

tests/milvus_python_test/entity/test_search.py 1 location

@@ 96-105 (lines=10) @@
93
                pytest.skip("sq8h not support in CPU mode")
94
        return request.param
95
96
    @pytest.fixture(
97
        scope="function",
98
        params=gen_simple_index()
99
    )
100
    def get_jaccard_index(self, request, connect):
101
        logging.getLogger().info(request.param)
102
        if request.param["index_type"] == IndexType.IVFLAT or request.param["index_type"] == IndexType.FLAT:
103
            return request.param
104
        else:
105
            pytest.skip("Skip index Temporary")
106
107
    @pytest.fixture(
108
        scope="function",