class documentation

class MockFinder(MetaPathFinder):

View In Hierarchy

A finder for mocking.
Method __init__ Undocumented
Method find​_spec Undocumented
Method invalidate​_caches Invalidate mocked modules on sys.modules.
Instance Variable loader Undocumented
Instance Variable mocked​_modules Undocumented
Instance Variable modnames Undocumented
def __init__(self, modnames):

Undocumented

Parameters
modnames:List[str]Undocumented
def find_spec(self, fullname, path, target=None):

Undocumented

Parameters
fullname:strUndocumented
path:Optional[Sequence[Union[bytes, str]]]Undocumented
target:ModuleTypeUndocumented
Returns
Optional[ModuleSpec]Undocumented
def invalidate_caches(self):
Invalidate mocked modules on sys.modules.
loader =

Undocumented

mocked_modules: List[str] =

Undocumented

modnames =

Undocumented