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
When I try to unit test it inside of a fake_filesystem_unittest.TestCase, I get:
...
File ".../pyfakefs/pyfakefs/fake_filesystem.py", line N, in __getattr__
KeyError: 'MyAwesomeMethod'
However, changing the import in the snippet to from mymodule import path as path_module avoids this, which indicates that pyfakefs is stubbing out any module named path, where if possible it should only stub out os.path.
The text was updated successfully, but these errors were encountered:
I have code that looks like this:
When I try to unit test it inside of a
fake_filesystem_unittest.TestCase
, I get:However, changing the import in the snippet to
from mymodule import path as path_module
avoids this, which indicates that pyfakefs is stubbing out any module namedpath
, where if possible it should only stub outos.path
.The text was updated successfully, but these errors were encountered: