def test_delete_by_range_normal(self, gcon, gvector): ranges = ranges_factory()[0] status = gcon._GrpcMilvus__delete_vectors_by_range( table_name=gvector, start_date=ranges.start_value, end_date=ranges.end_value) assert status.OK()
def test_search_normal_1_with_ranges(self, gcon, gtable): vectors = records_factory(dim, nq) status, ids = gcon.insert(gtable, vectors) assert status.OK() ranges = ranges_factory() time.sleep(2) s_vectors = [vectors[0]] status, result = gcon.search(gtable, 1, 10, s_vectors, ranges) assert status.OK() assert len(result) == 1 assert len(result[0]) == 1