MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / _patch_options_paths

Method _patch_options_paths

tests/common.py:79–89  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

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):

Callers 1

setUpClassMethod · 0.80

Calls 3

joinMethod · 0.80
restoreMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected