(self)
| 271 | return fn |
| 272 | |
| 273 | def run(self): |
| 274 | if self.test: |
| 275 | tests = [fn for fn in self.tests if fn.__name__ in self.test] |
| 276 | if not tests: |
| 277 | raise ValueError("No such test(s): %s" % self.test) |
| 278 | else: |
| 279 | tests = self.tests |
| 280 | |
| 281 | if self._setup_once: |
| 282 | print("Running setup once...") |
| 283 | self._setup_once(self.dburl, self.echo, self.num) |
| 284 | print("Tests to run: %s" % ", ".join([t.__name__ for t in tests])) |
| 285 | for test in tests: |
| 286 | self._run_test(test) |
| 287 | self.stats[-1].report() |
| 288 | |
| 289 | def _run_with_profile(self, fn, sort): |
| 290 | pr = cProfile.Profile() |
no test coverage detected