pyfakefs
A fake file system that mocks the Python file system modules.
A fake file system that mocks the Python file system modules.
To install this package, run one of the following:
Pyfakefs implements a fake file system that mocks the Python file system modules. Using pyfakefs, your tests operate on a fake file system in memory without touching the real disk. The software under test requires no modification to work with pyfakefs. pyfakefs works with Linux, Windows and macOS.
Summary
A fake file system that mocks the Python file system modules.
Last Updated
Mar 15, 2026 at 20:31
License
Apache-2.0
Total Downloads
179.6K
Version Downloads
30
Supported Platforms
GitHub Repository
https://github.com/jmcgeheeiv/pyfakefsDocumentation
https://pytest-pyfakefs.readthedocs.io/