def setup(): annotator.create_app() try: annotator.drop_all() except pyes.exceptions.ElasticSearchException: pass
def teardown(self): self.ctx.pop() annotator.drop_all()