| Conditions | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | 1 | import sys |
|
| 18 | 1 | def __init__(self, queue, destinations, testing=False): |
|
| 19 | """ |
||
| 20 | Initializes the main consumer. |
||
| 21 | |||
| 22 | """ |
||
| 23 | 1 | super().__init__() |
|
| 24 | |||
| 25 | 1 | self.sender = 'Consumer' |
|
| 26 | 1 | self.queue = queue |
|
| 27 | 1 | self.destinations = destinations |
|
| 28 | 1 | self.running = True |
|
| 29 | 1 | self.testing = testing |
|
| 30 | |||
| 31 | 1 | printM('Starting.', self.sender) |
|
| 32 | |||
| 58 |