mirror of
https://git.freebsd.org/ports.git
synced 2025-05-16 09:11:50 -04:00
The filesystems category houses file systems and file system utilities. It is added mainly to turn the sysutils/fusefs-* pseudo-category into a proper one, but is also useful for the sundry of other file systems related ports found in the tree. Ports that seem like they belong there are moved to the new category. Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are not moved as they currently don't fetch and don't have TIMESTAMP set in their distinfo, but that is required to be able to push a rename of the port by the pre-receive hook. Approved by: portmgr (rene) Reviewed by: mat Pull Request: https://github.com/freebsd/freebsd-ports/pull/302 PR: 281988
13 lines
744 B
Text
13 lines
744 B
Text
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 creates a new empty in-memory file system at each test start, which
|
|
replaces the real filesystem during the test. Think of pyfakefs as making a
|
|
per-test temporary directory, except for an entire file system.
|
|
|
|
There are several means to achieve this: by using the fs fixture if running
|
|
pytest, by using fake_filesystem_unittest.TestCase as a base class if using
|
|
unittest, by using a fake_filesystem_unittest.Patcher instance as a context
|
|
manager, or by using the patchfs decorator.
|