| Conditions | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | from contextlib import contextmanager |
||
| 36 | @staticmethod |
||
| 37 | def load(): |
||
| 38 | class PseudoPlugin: |
||
| 39 | __file__ = bears_test_module |
||
| 40 | return PseudoPlugin() |
||
| 41 | |||
| 42 | with unittest.mock.patch("pkg_resources.iter_entry_points", |
||
| 43 | return_value=[EntryPoint()]) as mocked: |
||
| 44 | yield |
||
| 45 | |||
| 46 | |||
| 47 | def raise_error(error, *args, **kwargs): |
||
| 48 | raise error(*args, **kwargs) |
||
| 49 |