Ejemplo n.º 1
0
def table_schema_factory():
    param = {
        'table_name': fake.table_name(),
        'dimension': random.randint(0, 999),
        'index_type': IndexType.IDMAP,
        'store_raw_vector': False
    }
    return Prepare.table_schema(**param)
Ejemplo n.º 2
0
 def test_table_schema(self):
     param = {
         'table_name': fake.table_name(),
         'dimension': random.randint(0, 999),
         'index_type': IndexType.FLAT,
         'store_raw_vector': False
     }
     res = Prepare.table_schema(**param)
     assert isinstance(res, ttypes.TableSchema)