Code Duplication    Length = 10-10 lines in 3 locations

tests/milvus_python_test/collection/test_collection_count.py 1 location

@@ 504-513 (lines=10) @@
501
    generate valid create_index params
502
    """
503
504
    @pytest.fixture(
505
        scope="function",
506
        params=gen_simple_index()
507
    )
508
    def get_hamming_index(self, request, connect):
509
        logging.getLogger().info(request.param)
510
        if request.param["index_type"] == IndexType.IVFLAT or request.param["index_type"] == IndexType.FLAT:
511
            return request.param
512
        else:
513
            pytest.skip("Skip index Temporary")
514
515
    @pytest.fixture(
516
        scope="function",

tests/milvus_python_test/test_index.py 1 location

@@ 1455-1464 (lines=10) @@
1452
            pytest.skip("Skip PQ Temporary")
1453
        return request.param
1454
1455
    @pytest.fixture(
1456
        scope="function",
1457
        params=gen_simple_index()
1458
    )
1459
    def get_hamming_index(self, request, connect):
1460
        logging.getLogger().info(request.param)
1461
        if request.param["index_type"] == IndexType.IVFLAT or request.param["index_type"] == IndexType.FLAT:
1462
            return request.param
1463
        else:
1464
            pytest.skip("Skip index Temporary")
1465
1466
    @pytest.fixture(
1467
        scope="function",

tests/milvus_python_test/entity/test_search.py 1 location

@@ 107-116 (lines=10) @@
104
        else:
105
            pytest.skip("Skip index Temporary")
106
107
    @pytest.fixture(
108
        scope="function",
109
        params=gen_simple_index()
110
    )
111
    def get_hamming_index(self, request, connect):
112
        logging.getLogger().info(request.param)
113
        if request.param["index_type"] == IndexType.IVFLAT or request.param["index_type"] == IndexType.FLAT:
114
            return request.param
115
        else:
116
            pytest.skip("Skip index Temporary")
117
118
    @pytest.fixture(
119
        scope="function",