Lines Matching refs:patchfs
147 Patch using fake_filesystem_unittest.patchfs decorator
155 from pyfakefs.fake_filesystem_unittest import patchfs
158 @patchfs
170 @patchfs
177 @patchfs
182 Avoid writing the ``patchfs`` decorator *between* ``mock.patch`` operators,
198 @patchfs
285 patchfs subsection
287 If you use the ``patchfs`` decorator, you can pass the arguments directly to
292 from pyfakefs.fake_filesystem_unittest import patchfs
295 @patchfs(allow_root_user=False)
431 # example using patchfs decorator
432 @patchfs(modules_to_reload=[example.sut])
505 # test code using patchfs decorator
506 @patchfs(modules_to_patch={"django.core.files.locks": FakeLocks})
570 @patchfs(patch_open_code=PatchMode.AUTO)
632 @patchfs(use_cache=False)
673 for the ``patchfs`` decorator.