Home
last modified time | relevance | path

Searched refs:modules_to_patch (Results 1 – 6 of 6) sorted by relevance

/external/python/pyfakefs/pyfakefs/
Dfake_filesystem_unittest.py138 modules_to_patch: Optional[Dict[str, ModuleType]] = None,
166 modules_to_patch=modules_to_patch,
203 modules_to_patch: Optional[Dict[str, ModuleType]] = None,
223 modules_to_patch=modules_to_patch,
286 modules_to_patch: Optional[Dict[str, ModuleType]] = None variable in TestCaseMixin
302 modules_to_patch: Optional[Dict[str, ModuleType]] = None,
329 if modules_to_patch is None:
330 modules_to_patch = self.modules_to_patch
334 modules_to_patch=modules_to_patch,
351 modules_to_patch: Optional[Dict[str, ModuleType]] = None,
[all …]
Dpatched_packages.py60 modules_to_patch = {}
62 modules_to_patch["xlrd"] = XLRDModule
64 modules_to_patch["django.core.files.locks"] = FakeLocks
65 return modules_to_patch
/external/python/pyfakefs/docs/
Dusage.rst456 modules_to_patch subsection
460 ``modules_to_patch`` can be used by adding a fake module implementation for
500 with Patcher(modules_to_patch={"django.core.files.locks": FakeLocks}):
507 self.setUpPyfakefs(modules_to_patch={"django.core.files.locks": FakeLocks})
522 @patchfs(modules_to_patch={"django.core.files.locks": FakeLocks})
Dtroubleshooting.rst36 functions or classes, they may be patched by using the ``modules_to_patch``
/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_unittest_test.py514 modules_to_patch={"pyfakefs.tests.import_as_example": FakeExampleModule}
539 @patchfs(modules_to_patch={"pyfakefs.tests.import_as_example": FakeExampleModule})
/external/python/pyfakefs/
DCHANGES.md909 * fixed using `modules_to_patch` (regression, see [#450](../../issues/450))
1031 * Added possibility to add own fake modules via `modules_to_patch`