add new test

This commit is contained in:
xj.lin 2019-03-24 21:08:27 +08:00
parent 1bebe57836
commit da4278779d
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,3 @@
import unittest
from ..scheduler import *

View File

@ -98,7 +98,8 @@ class VectorEngine(object):
# create index
index_builder = build_index.FactoryIndex()
index = index_builder().build(d, raw_data)
index = index_builder().build(d, raw_data) # type: index
index = build_index.Index.serialize(index) # type: array
# TODO(jinhai): store index into Cache
index_filename = file.filename + '_index'