Python testfixtures.log_capture() Examples
The following are 1
code examples of testfixtures.log_capture().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
testfixtures
, or try the search function
.
Example #1
Source File: exc.py From Rester with MIT License | 6 votes |
def __call__(self): # What was this? #skip_all_subsequent_tests = False for step in self.case.steps: self.logger.debug('Test Step Name : %s', step.name) if step.get('skip', False): self.logger.info('\n=======> Skipping test case : ' + step.name) self.skipped.append(step) continue @log_capture() def _run(l): failures = self._execute_test_step(step) return failures, l f, logs = _run() if f: self.failed.append((step, Failure(f.errors, "".join(self._format_logs(logs))))) else: self.passed.append(step) return self._result()