def step_two(self): with record_detail("two"): LOG.info("Doing step two") self.numbers = [n * 2 for n in self.numbers] sleep(1)
def step_one(self): with record_detail("one") as d: LOG.info("Doing step one with %s", type(d)) self.numbers = [n + 2 for n in self.numbers]
def step_one(self): with record_detail('one') as d: LOG.info('Doing step one with %s', type(d)) self.numbers = [n + 2 for n in self.numbers]
def step_two(self): with record_detail('two'): LOG.info('Doing step two') self.numbers = [n * 2 for n in self.numbers] sleep(1)
def step_one(self): with record_detail('one'): LOG.info('Doing step one') self.numbers = [n + 2 for n in self.numbers]