| Conditions | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Class represents grouping strategy.""" |
||
| 12 | def define_group(self, group_of_stages): |
||
| 13 | """Add group of stages. Those stages will be in the same group. |
||
| 14 | |||
| 15 | Args: |
||
| 16 | group_of_stages (tuple): group of stages""" |
||
| 17 | group_number = self.get_actual_numbers_of_groups() |
||
| 18 | for stage in group_of_stages: |
||
| 19 | if stage in self.groups.keys(): |
||
| 20 | raise ValueError("Stage already added.") |
||
| 21 | else: |
||
| 22 | self.ordered_stages[stage] = group_number |
||
| 23 | |||
| 36 |