Returns two lists of TestController instances, those to run, and those not to run.
(options)
| 201 | |
| 202 | |
| 203 | def 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 | |
| 216 | def do_run(controller, buffer_output=True): |
| 217 | """Setup and run a test controller. |
no test coverage detected