| Total Complexity | 4 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| 1 | # pylint: disable=missing-docstring,no-self-use,misplaced-comparison-constant,abstract-class-instantiated |
||
| 12 | class MyContainer(Container): |
||
| 13 | |||
| 14 | def __init__(self, number): |
||
| 15 | from unittest.mock import MagicMock |
||
| 16 | self.__mapper__ = MagicMock() |
||
| 17 | self.value = number |
||
| 18 | |||
| 19 | @classmethod |
||
| 20 | def create_default(cls): |
||
| 21 | return 1 |
||
| 22 | |||
| 23 | @classmethod |
||
| 24 | def to_data(cls, value): |
||
| 25 | return str(value.value) |
||
| 26 | |||
| 27 | def update_value(self, data, strict=True): |
||
| 28 | self.value += int(data) |
||
| 29 | |||
| 40 |