Skip to content

Commit

Permalink
Merge pull request #1376 from del-zhenwu/crud
Browse files Browse the repository at this point in the history
Case fixed
  • Loading branch information
del-zhenwu authored Feb 26, 2020
2 parents a2d8927 + d6d6ddc commit ccd8074
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/milvus_python_test/test_get_vector_by_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,22 +361,22 @@ def test_get_vector_table_not_existed(self, connect, jac_table):
status, res = connect.get_vector_by_id(table_new, 1)
assert not status.OK()

def test_get_vector_partition(self, connect, table):
def test_get_vector_partition(self, connect, jac_table):
'''
target: test get_vector_by_id
method: add vector, and get
expected: status ok, vector returned
'''
tmp, vectors = gen_binary_vectors(nb, dim)
status = connect.create_partition(table, tag)
status, ids = connect.add_vectors(table, vectors, partition_tag=tag)
status = connect.create_partition(jac_table, tag)
status, ids = connect.add_vectors(jac_table, vectors, partition_tag=tag)
assert status.OK()
status = connect.flush([table])
status = connect.flush([jac_table])
assert status.OK()
status, res = connect.get_vector_by_id(table, ids[0])
status, res = connect.get_vector_by_id(jac_table, ids[0])
logging.getLogger().info(res)
assert status.OK()
assert res == vectors[0]
assert res == vectors[0]


class TestGetVectorIdIngalid(object):
Expand Down

0 comments on commit ccd8074

Please sign in to comment.