{"added":null,"apiVersion":1,"behindSince":"2026-09-30","buildDepends":["devel/py-setuptools","devel/py-wheel"],"categories":["filesystems","devel","python"],"comment":"Implement a fake file system that mocks the Python file system modules","compare":null,"dependentCount":null,"description":"pyfakefs implements a fake file system that mocks the Python file system\nmodules. Using pyfakefs, your tests operate on a fake file system in memory\nwithout touching the real disk. The software under test requires no modification\nto work with pyfakefs.\n\nPyfakefs creates a new empty in-memory file system at each test start, which\nreplaces the real filesystem during the test. Think of pyfakefs as making a\nper-test temporary directory, except for an entire file system.\n\nThere are several means to achieve this: by using the fs fixture if running\npytest, by using fake_filesystem_unittest.TestCase as a base class if using\nunittest, by using a fake_filesystem_unittest.Patcher instance as a context\nmanager, or by using the patchfs decorator.","flavors":[],"html":"https://daemonports.org/midnightbsd/filesystems/py-pyfakefs/","kind":"port","lastUpdate":null,"license":["Apache-2.0"],"maintainer":"ports@MidnightBSD.org","name":"${PYTHON_PKGNAMEPREFIX}pyfakefs","newest":false,"newestVersion":"6.2.0","noVulnData":true,"origin":"filesystems/py-pyfakefs","otherSystems":[{"maintainer":"sunpoet@FreeBSD.org","newest":true,"origin":"filesystems/py-pyfakefs","path":"/filesystems/py-pyfakefs/","system":"FreeBSD","updated":"2026-09-30","version":"6.2.0"},{"behindSince":"2026-09-30","maintainer":"sunpoet@FreeBSD.org","origin":"filesystems/py-pyfakefs","path":"/dragonfly/filesystems/py-pyfakefs/","system":"DragonFly","version":"5.8.0"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"filesystems/py-pyfakefs","path":"","system":"HardenedBSD","version":"6.2.0"},{"behindSince":"2026-09-30","maintainer":"sunpoet@FreeBSD.org","noVulnData":true,"origin":"filesystems/py-pyfakefs","path":"","system":"GhostBSD","version":"5.10.2"}],"packages":null,"pkgName":"${PYTHON_PKGNAMEPREFIX}pyfakefs-5.7.1_1","related":null,"repository":"mports","requiredBy":[],"requiredByCount":0,"runDepends":[],"status":null,"system":"midnightbsd","systemLabel":"MidnightBSD","version":"5.7.1_1","versions":null,"vulnerabilities":null,"www":"https://pytest-pyfakefs.readthedocs.io/en/stable/"}
