MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / run

Method run

examples/performance/__init__.py:273–287  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers 7

greenlet_orm.pyFile · 0.45
basic.pyFile · 0.45
async_orm.pyFile · 0.45
mainMethod · 0.45
asyncio.pyFile · 0.45

Calls 3

_run_testMethod · 0.95
reportMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected