pyfakefs: A fake filesystem for tests¶
- Introduction
- Usage
- Using convenience methods
- Customizing patching
- Troubleshooting
- Modules not working with pyfakefs
- Pyfakefs behaves differently than the real filesystem
- The test code tries to access files in the real filesystem
- OS temporary directories
- User rights
- Interaction with other fixtures working on the filesystem
- Pathlib.Path objects created outside of tests
- Nested file system fixtures and Patcher invocations
- Tests failing after a test using pyfakefs
- Contiguous tests use large amounts of memory
- Directly accessing device files in tests
- Public Modules and Classes