Home
last modified time | relevance | path

Searched refs:patchfs (Results 1 – 7 of 7) sorted by relevance

/aosp_15_r20/external/python/pyfakefs/docs/
Dusage.rst147 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
[all …]
Dmodules.rst40 :members: patchfs
Dautopatch.rst16 the ``patchfs`` decorator, or the ``Patcher`` class.
/aosp_15_r20/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_unittest_test.py41 patchfs,
59 @patchfs
68 @patchfs
79 @patchfs
502 @patchfs
511 @patchfs(modules_to_patch={"pyfakefs.tests.import_as_example": FakeExampleModule})
752 @patchfs
895 @patchfs
/aosp_15_r20/external/python/pyfakefs/
DREADME.md16 as a context manager, or by using the `patchfs` decorator.
DCHANGES.md400 * The `patchfs` decorator now expects a positional argument instead of the
403 adapt the argument order if you use the `patchfs` and `mock.patch`
506 * Added convenience decorator `patchfs` to patch single functions using
/aosp_15_r20/external/python/pyfakefs/pyfakefs/
Dfake_filesystem_unittest.py98 def patchfs( function