Guix will hold its first online conference November 22nd. Propose a talk before November 6th. Learn more!

python-pyfakefs 3.7.1 Mock file system interactions in tests

This package provides a Python library intended for use in automated tests. One difficulty when testing software is that the code under test might need to read or write to files in the local file system. If the file system is not set up in just the right way, it might cause a spurious error during the test. The pyfakefs library provides a solution to problems like this by mocking file system interactions. In other words, it arranges for the code under test to interact with a fake file system instead of the real file system. The code under test requires no modification to work with pyfakefs.