Remove skip tag in search case

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/4973/head^2
xige-16 2021-03-17 10:30:15 +08:00 committed by yefu.chen
parent 6cef504c5d
commit 1b4c354059
1 changed files with 0 additions and 39 deletions

View File

@ -258,7 +258,6 @@ class TestSearchBase:
# TODO:
@pytest.mark.tags("0331")
#@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_search_after_index(self, connect, collection, get_simple_index, get_top_k, get_nq):
'''
@ -307,7 +306,6 @@ class TestSearchBase:
assert len(res[0]) == default_top_k
assert res[0]._distances[0] > res[0]._distances[default_top_k - 1]
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_search_index_empty_partition(self, connect, collection, get_simple_index, get_top_k, get_nq):
'''
@ -341,7 +339,6 @@ class TestSearchBase:
res = connect.search(collection, query, partition_tags=[default_tag])
assert len(res[0]) == 0
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_search_index_partition(self, connect, collection, get_simple_index, get_top_k, get_nq):
'''
@ -372,7 +369,6 @@ class TestSearchBase:
assert res[0]._distances[0] < epsilon
assert check_id_result(res[0], ids[0])
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_search_index_partition_not_existed(self, connect, collection, get_top_k, get_nq, get_simple_index):
'''
@ -395,7 +391,6 @@ class TestSearchBase:
assert len(res[0]) == 0
@pytest.mark.tags("0331")
# @pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_search_index_partitions(self, connect, collection, get_simple_index, get_top_k):
'''
@ -432,7 +427,6 @@ class TestSearchBase:
connect.release_collection(collection)
@pytest.mark.tags("0331")
# @pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_search_index_partitions_B(self, connect, collection, get_simple_index, get_top_k):
'''
@ -472,7 +466,6 @@ class TestSearchBase:
# test for ip metric
#
# @pytest.mark.tags("0331")
# @pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_search_ip_flat(self, connect, collection, get_simple_index, get_top_k, get_nq):
'''
@ -491,7 +484,6 @@ class TestSearchBase:
assert check_id_result(res[0], ids[0])
@pytest.mark.tags("0331")
# @pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_search_ip_after_index(self, connect, collection, get_simple_index, get_top_k, get_nq):
'''
@ -518,7 +510,6 @@ class TestSearchBase:
assert res[0]._distances[0] >= 1 - gen_inaccuracy(res[0]._distances[0])
# @pytest.mark.tags("0331")
# @pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_search_ip_index_empty_partition(self, connect, collection, get_simple_index, get_top_k, get_nq):
'''
@ -553,7 +544,6 @@ class TestSearchBase:
assert len(res[0]) == 0
@pytest.mark.tags("0331")
# @pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_search_ip_index_partitions(self, connect, collection, get_simple_index, get_top_k):
'''
@ -631,7 +621,6 @@ class TestSearchBase:
# TODO
# @pytest.mark.tags("0331")
# @pytest.mark.skip("r0.3-test")
def test_search_distance_l2_after_index(self, connect, id_collection, get_simple_index):
'''
target: search collection, and check the result: distance
@ -663,7 +652,6 @@ class TestSearchBase:
# assert abs(np.sqrt(res[0]._distances[0]) - min_distance) <= tmp_epsilon
# @pytest.mark.tags("0331")
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_search_distance_ip(self, connect, collection):
'''
@ -687,7 +675,6 @@ class TestSearchBase:
assert abs(res[0]._distances[0] - max(distance_0, distance_1)) <= epsilon
# @pytest.mark.tags("0331")
# @pytest.mark.skip("r0.3-test")
def test_search_distance_ip_after_index(self, connect, id_collection, get_simple_index):
'''
target: search collection, and check the result: distance
@ -1073,7 +1060,6 @@ class TestSearchDSL(object):
******************************************************************
"""
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_term_value_not_in(self, connect, collection):
'''
@ -1091,7 +1077,6 @@ class TestSearchDSL(object):
# TODO:
# TODO:
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_term_value_all_in(self, connect, collection):
'''
@ -1108,7 +1093,6 @@ class TestSearchDSL(object):
# TODO:
# TODO:
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_term_values_not_in(self, connect, collection):
'''
@ -1125,7 +1109,6 @@ class TestSearchDSL(object):
assert len(res[0]) == 0
# TODO:
@pytest.mark.skip("r0.3-test")
def test_query_term_values_all_in(self, connect, collection):
'''
method: build query with vector and term expr, with all term can be filtered
@ -1145,7 +1128,6 @@ class TestSearchDSL(object):
assert result.id in ids[:limit]
# TODO:
@pytest.mark.skip("r0.3-test")
def test_query_term_values_parts_in(self, connect, collection):
'''
method: build query with vector and term expr, with parts of term can be filtered
@ -1163,7 +1145,6 @@ class TestSearchDSL(object):
# TODO:
# TODO:
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_term_values_repeat(self, connect, collection):
'''
@ -1253,7 +1234,6 @@ class TestSearchDSL(object):
res = connect.search(collection, query)
# TODO
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_term_field_named_term(self, connect, collection):
'''
@ -1352,7 +1332,6 @@ class TestSearchDSL(object):
with pytest.raises(Exception) as e:
res = connect.search(collection, query)
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_range_invalid_ranges(self, connect, collection):
'''
@ -1375,7 +1354,6 @@ class TestSearchDSL(object):
def get_valid_ranges(self, request):
return request.param
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_range_valid_ranges(self, connect, collection, get_valid_ranges):
'''
@ -1413,7 +1391,6 @@ class TestSearchDSL(object):
"""
# TODO
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_multi_term_has_common(self, connect, collection):
'''
@ -1431,7 +1408,6 @@ class TestSearchDSL(object):
assert len(res[0]) == default_top_k
# TODO
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_multi_term_no_common(self, connect, collection):
'''
@ -1449,7 +1425,6 @@ class TestSearchDSL(object):
assert len(res[0]) == 0
# TODO
@pytest.mark.skip("r0.3-test")
def test_query_multi_term_different_fields(self, connect, collection):
'''
method: build query with multi range with same field, and ranges no common
@ -1484,7 +1459,6 @@ class TestSearchDSL(object):
res = connect.search(collection, query)
# TODO
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_multi_range_has_common(self, connect, collection):
'''
@ -1502,7 +1476,6 @@ class TestSearchDSL(object):
assert len(res[0]) == default_top_k
# TODO
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_multi_range_no_common(self, connect, collection):
'''
@ -1520,7 +1493,6 @@ class TestSearchDSL(object):
assert len(res[0]) == 0
# TODO
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_multi_range_different_fields(self, connect, collection):
'''
@ -1561,7 +1533,6 @@ class TestSearchDSL(object):
"""
# TODO
@pytest.mark.skip("r0.3-test")
@pytest.mark.level(2)
def test_query_single_term_range_has_common(self, connect, collection):
'''
@ -1579,7 +1550,6 @@ class TestSearchDSL(object):
assert len(res[0]) == default_top_k
# TODO
@pytest.mark.skip("r0.3-test")
def test_query_single_term_range_no_common(self, connect, collection):
'''
method: build query with single term single range
@ -1702,7 +1672,6 @@ class TestSearchDSLBools(object):
******************************************************************
"""
@pytest.mark.skip("r0.3-test")
class TestSearchInvalid(object):
"""
Test search collection with invalid collection names
@ -1739,14 +1708,12 @@ class TestSearchInvalid(object):
# pytest.skip("sq8h not support in CPU mode")
return request.param
@pytest.mark.tags("0331")
@pytest.mark.level(2)
def test_search_with_invalid_collection(self, connect, get_collection_name):
collection_name = get_collection_name
with pytest.raises(Exception) as e:
res = connect.search(collection_name, default_query)
@pytest.mark.tags("0331")
@pytest.mark.level(2)
def test_search_with_invalid_partition(self, connect, collection, get_invalid_partition):
# tag = " "
@ -1754,14 +1721,12 @@ class TestSearchInvalid(object):
with pytest.raises(Exception) as e:
res = connect.search(collection, default_query, partition_tags=tag)
@pytest.mark.tags("0331")
@pytest.mark.level(2)
def test_search_with_invalid_field_name(self, connect, collection, get_invalid_field):
fields = [get_invalid_field]
with pytest.raises(Exception) as e:
res = connect.search(collection, default_query, fields=fields)
@pytest.mark.tags("0331")
@pytest.mark.level(1)
def test_search_with_not_existed_field(self, connect, collection):
fields = [gen_unique_str("field_name")]
@ -1779,7 +1744,6 @@ class TestSearchInvalid(object):
def get_top_k(self, request):
yield request.param
@pytest.mark.tags("0331")
@pytest.mark.level(1)
def test_search_with_invalid_top_k(self, connect, collection, get_top_k):
'''
@ -1803,7 +1767,6 @@ class TestSearchInvalid(object):
def get_search_params(self, request):
yield request.param
@pytest.mark.tags("0331")
@pytest.mark.level(2)
def test_search_with_invalid_params(self, connect, collection, get_simple_index, get_search_params):
'''
@ -1824,7 +1787,6 @@ class TestSearchInvalid(object):
with pytest.raises(Exception) as e:
res = connect.search(collection, query)
@pytest.mark.tags("0331")
@pytest.mark.level(2)
def test_search_with_invalid_params_binary(self, connect, binary_collection):
'''
@ -1843,7 +1805,6 @@ class TestSearchInvalid(object):
with pytest.raises(Exception) as e:
res = connect.search(binary_collection, query)
@pytest.mark.tags("0331")
@pytest.mark.level(2)
def test_search_with_empty_params(self, connect, collection, args, get_simple_index):
'''