Searched refs:modules_to_patch (Results 1 – 6 of 6) sorted by relevance
| /external/python/pyfakefs/pyfakefs/ |
| D | fake_filesystem_unittest.py | 138 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 …]
|
| D | patched_packages.py | 60 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/ |
| D | usage.rst | 456 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})
|
| D | troubleshooting.rst | 36 functions or classes, they may be patched by using the ``modules_to_patch``
|
| /external/python/pyfakefs/pyfakefs/tests/ |
| D | fake_filesystem_unittest_test.py | 514 modules_to_patch={"pyfakefs.tests.import_as_example": FakeExampleModule} 539 @patchfs(modules_to_patch={"pyfakefs.tests.import_as_example": FakeExampleModule})
|
| /external/python/pyfakefs/ |
| D | CHANGES.md | 909 * fixed using `modules_to_patch` (regression, see [#450](../../issues/450)) 1031 * Added possibility to add own fake modules via `modules_to_patch`
|