def tearDown(self): next_app = None next_app_list = pbclient.find_app(short_name=self.app.short_name[:-1] + "4") if len(next_app_list) > 0: next_app = next_app_list[0] next_task = None tasks = pbclient.get_tasks(next_app.id) for t in tasks: if t.info["img_url"] == self.task1.task.info["img_url"]: pbclient.delete_task(task_id=t.id) pbclient.delete_app(app_id=next_app.id) pbclient.delete_task(self.task1.task.id) pbclient.delete_task(self.task2.task.id) pbclient.delete_app(self.app.app_id) delete_book(self.task1.get_book_id())
def tearDown(self): #next_app = None #next_app_list = pbclient.find_app(short_name=self.app.short_name[:-1] + "3") #if len(next_app_list) > 0: # next_app = next_app_list[0] # # next_task = None # tasks = pbclient.get_tasks(next_app.id) # for t in tasks: # if t.info["page"] == self.task1.task.info["page"]: # pbclient.delete_task(task_id=t.id) # # pbclient.delete_app(app_id=next_app.id) pbclient.delete_task(self.task1.task.id) pbclient.delete_task(self.task2.task.id) pbclient.delete_app(self.app.app_id) delete_book(self.task1.get_book_id())
def tearDown(self): delete_book("rpparaiba1918") delete_app("rpparaiba1918")
def tearDown(self): delete_book(self.book_info['bookid']) delete_workflow_transaction(self.workflow_transaction_info)
def tearDown(self): delete_workflow_transactions(self.book_id) delete_app(self.book_id) delete_book(self.book_id)