def delete_registered_user(): """ Delete user """ yield with allure.step('Delete registered user'): db = Connection() db.delete_user_with_email("*****@*****.**") loger(__name__, 'info', 'Delete User') db.close()
def delete_registered_user(): """ Delete user """ yield with allure.step('Delete registered user'): db = Connection() db.delete_user_with_email("*****@*****.**") loger = PyLogging(__name__) loger.info("Deleting user") db.close()
def delete_user_and_close_conn(): yield conn = Connection() conn.delete_user_with_email("*****@*****.**") conn.close()