示例#1
0
def get_image(image_id):
    result = Image.get_by_id(es, image_id)

    return jsonify(result)
示例#2
0
 def test_get_by_id(self):
     assert (Image.get_by_id(es, self.test_id,
                             index=self.index_name)['_id'] == self.test_id)