Resolve links to their target in os.utime to fix #49
2 files changed
tree: 4e309fba418125693821a96267014244316962a2
  1. .gitignore
  2. .travis.yml
  3. __init__.py
  4. all_tests.py
  5. conftest.py
  6. COPYING
  7. example.py
  8. example_test.py
  9. fake_filesystem.py
  10. fake_filesystem_glob.py
  11. fake_filesystem_glob_test.py
  12. fake_filesystem_shutil.py
  13. fake_filesystem_shutil_test.py
  14. fake_filesystem_test.py
  15. fake_filesystem_unittest.py
  16. fake_filesystem_unittest_test.py
  17. fake_filesystem_vs_real_test.py
  18. fake_tempfile.py
  19. fake_tempfile_test.py
  20. pytest_doctest_test.py
  21. README.md
  22. requirements.txt
  23. setup.py
  24. tox.ini
README.md

pyfakefs

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.

Usage

See the usage tutorial for a concrete example of how to apply pyfakefs.

Continuous Integration

pyfakefs is automatically tested with Python 2.6 and above, and it is currently Build Status.

See Travis-CI for test results for each Python version.

Installation

Compatibility

pyfakefs works with Python 2.6 and above. pyfakefs has no dependencies beyond the Python standard library.

PyPi

pyfakefs project is hosted on PyPi and can be installed:

pip install pyfakefs

History

pyfakefs.py was initially developed at Google by Mike Bland as a modest fake implementation of core Python modules. It was introduced to all of Google in September 2006. Since then, it has been enhanced to extend its functionality and usefulness. At Google alone, pyfakefs is used in over 2,000 Python tests.

pyfakefs was released to the public in 2011 as Google Code project pyfakefs.

Fork jmcgeheeiv-pyfakefs added a usage tutorial, direct support for unittest and doctest.

Fork shiffdane-jmcgeheeiv-pyfakefs added further corrections.

After the shutdown of Google Code was announced, all three Google Code projects are merged together here on GitHub as pyfakefs.