FICHA · MANJARO

python-pyfakefs

pyfakefs implements a fake file system that mocks the Python file system modules

  • Library
  • Dev
  • Dependency only
official+codex · reviewed · May 28, 2026 description in en

Description

Mocks Python filesystem modules with a fake in-memory filesystem for tests. It helps developers test file-handling code without touching real user files or creating complex temporary directory setups.

Fake filesystems are useful for unit tests, but they do not reproduce every behavior of real disks, permissions, symlinks, or network filesystems. Keep integration tests for critical file operations.

Permissions

Permissions not analysed for this source yet.