Side effect wrapper to simulate the first call to path.exists to avoid picking up global config
(*args, **kwargs)
| 76 | ) |
| 77 | |
| 78 | def side_effect_wrapper(*args, **kwargs): |
| 79 | """Side effect wrapper to simulate the first call to path.exists to avoid picking up global config""" |
| 80 | if side_effect_wrapper.call_count == 0: |
| 81 | side_effect_wrapper.call_count += 1 |
| 82 | return False |
| 83 | else: |
| 84 | return True |
| 85 | |
| 86 | side_effect_wrapper.call_count = 0 |
| 87 | mock_path_exists.side_effect = side_effect_wrapper |
nothing calls this directly
no outgoing calls
no test coverage detected