{"added":null,"apiVersion":1,"behindSince":"2026-09-30","buildDepends":[],"categories":["devel","filesystems","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/dragonfly/filesystems/py-pyfakefs/","kind":"port","lastUpdate":null,"license":["APACHE20"],"maintainer":"sunpoet@FreeBSD.org","name":"py311-pyfakefs","newest":false,"newestVersion":"6.2.0","noVulnData":false,"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":"ports@MidnightBSD.org","noVulnData":true,"origin":"filesystems/py-pyfakefs","path":"/midnightbsd/filesystems/py-pyfakefs/","system":"MidnightBSD","version":"5.7.1_1"},{"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":"py311-pyfakefs-5.8.0","related":null,"repository":"DPorts","requiredBy":[],"requiredByCount":0,"runDepends":["lang/python311"],"status":null,"system":"dragonfly","systemLabel":"DragonFly","version":"5.8.0","versions":null,"vulnerabilities":null,"www":"https://pytest-pyfakefs.readthedocs.io/en/stable/"}
