(cls)
| 77 | |
| 78 | @classmethod |
| 79 | def _patch_options_paths(cls): |
| 80 | to_patch = [('bleachbit.options_dir', cls.tempdir), |
| 81 | ('bleachbit.options_file', os.path.join( |
| 82 | cls.tempdir, "bleachbit.ini")), |
| 83 | ('bleachbit.personal_cleaners_dir', os.path.join(cls.tempdir, "cleaners"))] |
| 84 | for target, source in to_patch: |
| 85 | patcher = mock.patch(target, source) |
| 86 | patcher.start() |
| 87 | cls._patchers.append(patcher) |
| 88 | |
| 89 | bleachbit.Options.options.restore() |
| 90 | |
| 91 | @classmethod |
| 92 | def tearDownClass(cls): |
no test coverage detected