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
Jun 24, 2025 at 13:05
License
Apache-2.0
Total Downloads
1.1K
Supported Platforms
Unsupported Platforms
GitHub Repository
https://github.com/pytest-dev/pyfakefsDocumentation
https://pytest-pyfakefs.readthedocs.io