| Conditions | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | # -*- coding: utf-8 -*- |
||
| 12 | @classmethod |
||
| 13 | def setup_class(cls): |
||
| 14 | |||
| 15 | # there are several similar modules-resources. |
||
| 16 | # all we need to test them -- mock NetworkClient, to prevent |
||
| 17 | # network access. |
||
| 18 | # Let's do it with mock.patch.object |
||
| 19 | # |
||
| 20 | # Mocked client will be accessible in tests as `cls.client` |
||
| 21 | |||
| 22 | # mock FluentRequest |
||
| 23 | cls._patcher_fluent_request_class = mock.patch( |
||
| 24 | 'route4me.sdk._net.FluentRequest' |
||
| 25 | ) |
||
| 26 | cls.mock_fluent_request_class = cls._patcher_fluent_request_class.start() |
||
| 27 | |||
| 47 |