MCPcopy Create free account
hub / github.com/ipython/ipython / prepare_controllers

Function prepare_controllers

IPython/testing/iptestcontroller.py:203–214  ·  view source on GitHub ↗

Returns two lists of TestController instances, those to run, and those not to run.

(options)

Source from the content-addressed store, hash-verified

201
202
203def prepare_controllers(options):
204 """Returns two lists of TestController instances, those to run, and those
205 not to run."""
206 testgroups = options.testgroups
207 if not testgroups:
208 testgroups = py_test_group_names
209
210 controllers = [PyTestController(name, options) for name in testgroups]
211
212 to_run = [c for c in controllers if c.will_run]
213 not_run = [c for c in controllers if not c.will_run]
214 return to_run, not_run
215
216def do_run(controller, buffer_output=True):
217 """Setup and run a test controller.

Callers 1

run_iptestallFunction · 0.85

Calls 1

PyTestControllerClass · 0.85

Tested by

no test coverage detected