| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Module for testing grouped optimizer.""" |
||
| 10 | class TestGroupedOptimizer(TestCase): |
||
| 11 | """Class for testing Optimizer.""" |
||
| 12 | |||
| 13 | def setUp(self): |
||
| 14 | """Set up environment.""" |
||
| 15 | self.some_process = AbstractProcess() |
||
| 16 | self.first_stage = AbstractStage() |
||
| 17 | self.second_stage = AbstractStage() |
||
| 18 | self.third_stage_a = Mock() |
||
| 19 | self.third_stage_b = Mock() |
||
| 20 | self.some_process.add_path([self.first_stage, self.second_stage, |
||
| 21 | self.third_stage_a]) |
||
| 22 | self.some_process.add_edge(self.second_stage, self.third_stage_b) |
||
| 23 | |||
| 24 | def test___init__(self): |
||
| 25 | """Testing creating object.""" |
||
| 26 | optimizer = GroupedOptimizer(self.some_process) |
||
| 27 | self.assertIsNotNone(optimizer) |
||
| 28 | self.assertEqual(optimizer.process, self.some_process) |
||
| 29 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.