def teardown(self): self.ctx.pop() annotateit.drop_all(self.app)
def setup(): app = annotateit.create_app() try: annotateit.drop_all(app) except elasticsearch.exceptions.NotFoundError: pass
def setup(): app = annotateit.create_app() try: annotateit.drop_all(app) except pyes.exceptions.ElasticSearchException: pass