| Conditions | 4 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | import logging |
||
| 29 | def start(self, enabled=None): |
||
| 30 | started = [] |
||
| 31 | |||
| 32 | for method in self.filter(enabled): |
||
| 33 | obj = method() |
||
| 34 | |||
| 35 | # Store reference |
||
| 36 | started.append(obj) |
||
| 37 | |||
| 38 | if self.single: |
||
| 39 | break |
||
| 40 | |||
| 41 | log.info( |
||
| 42 | 'Started %s method(s): %s', |
||
| 43 | len(started), |
||
| 44 | ', '.join([m.__class__.__name__ for m in started]) |
||
| 45 | ) |
||
| 46 | |||
| 47 | return started |
||
| 48 |