You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possible API: add an argument additional_fake_modules to Patcher containing a list of dictionaries. Each entry holds the module name with the respective fake class.
The text was updated successfully, but these errors were encountered:
Sometimes it makes sense to add an own fake module for a module name.
Possible use cases:
from pathlib import Path
(see When 'Path' from 'pathlib' is imported, it isn't faked. #344)scandir
, see Pyfakefs doesn't work with Python 2.6+ backport of os.scandir #332)Possible API: add an argument
additional_fake_modules
to Patcher containing a list of dictionaries. Each entry holds the module name with the respective fake class.The text was updated successfully, but these errors were encountered: