예제 #1
0
 def teardown(self):
     self.ctx.pop()
     annotateit.drop_all(self.app)
예제 #2
0
def setup():
    app = annotateit.create_app()
    try:
        annotateit.drop_all(app)
    except elasticsearch.exceptions.NotFoundError:
        pass
예제 #3
0
def setup():
    app = annotateit.create_app()
    try:
        annotateit.drop_all(app)
    except pyes.exceptions.ElasticSearchException:
        pass