Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
.travis.yml | 05-Oct-2017 | 889 | |
__init__.py | 05-Oct-2017 | 0 | |
all_tests.py | 05-Oct-2017 | 1.6K | |
COPYING | 05-Oct-2017 | 9.9K | |
example.py | 05-Oct-2017 | 3.5K | |
example_test.py | 05-Oct-2017 | 5K | |
fake_filesystem.py | 05-Oct-2017 | 71.5K | |
fake_filesystem_glob.py | 05-Oct-2017 | 3.4K | |
fake_filesystem_glob_test.py | 05-Oct-2017 | 2.6K | |
fake_filesystem_shutil.py | 05-Oct-2017 | 7K | |
fake_filesystem_shutil_test.py | 05-Oct-2017 | 12.1K | |
fake_filesystem_test.py | 05-Oct-2017 | 109.2K | |
fake_filesystem_unittest.py | 05-Oct-2017 | 8.5K | |
fake_filesystem_unittest_test.py | 05-Oct-2017 | 3.9K | |
fake_filesystem_vs_real_test.py | 05-Oct-2017 | 26.2K | |
fake_tempfile.py | 05-Oct-2017 | 10.7K | |
fake_tempfile_test.py | 05-Oct-2017 | 6.8K | |
README.md | 05-Oct-2017 | 1.9K | |
requirements.txt | 05-Oct-2017 | 14 | |
setup.py | 05-Oct-2017 | 2.7K | |
tox.ini | 05-Oct-2017 | 110 |
1 # pyfakefs 2 pyfakefs implements a fake file system that mocks the Python file system modules. 3 Using pyfakefs, your tests operate on a fake file system in memory without 4 touching the real disk. The software under test requires no modification to 5 work with pyfakefs. 6 7 ## Usage 8 See the [usage tutorial](http://github.com/jmcgeheeiv/pyfakefs/wiki/Tutorial) 9 for a concrete example of how to apply pyfakefs. 10 11 ## Continuous Integration 12 pyfakefs is tested with Python 2.6 and above. See [Travis-CI](http://travis-ci.org) for 13 [pyfakefs continuous integration test results](https://travis-ci.org/jmcgeheeiv/pyfakefs) 14 for each Python version. 15 16 ## Installation 17 18 ### Compatibility 19 pyfakefs works with Python 2.6 and above. pyfakefs has no dependencies beyond the Python 20 standard library. 21 22 ### PyPi 23 pyfakefs project is hosted on PyPi and can be installed: 24 25 ```bash 26 pip install pyfakefs 27 ``` 28 29 ## History 30 pyfakefs.py was initially developed at Google by Mike Bland as a modest fake 31 implementation of core Python modules. It was introduced to all of Google 32 in September 2006. Since then, it has been enhanced to extend its 33 functionality and usefulness. At Google alone, pyfakefs is used in over 2,000 34 Python tests. 35 36 pyfakefs was released to the public in 2011 as Google Code project 37 [pyfakefs](http://code.google.com/p/pyfakefs/). 38 39 Fork 40 [jmcgeheeiv-pyfakefs](http://code.google.com/p/jmcgeheeiv-pyfakefs/) 41 added a [usage tutorial](http://github.com/jmcgeheeiv/pyfakefs/wiki/Tutorial), 42 direct support for [unittest](http://docs.python.org/2/library/unittest.html) 43 and [doctest](http://docs.python.org/2/library/doctest.html). 44 45 Fork 46 [shiffdane-jmcgeheeiv-pyfakefs](http://code.google.com/p/shiffdane-jmcgeheeiv-pyfakefs/) 47 added further corrections. 48 49 After the [shutdown of Google Code was announced,](http://google-opensource.blogspot.com/2015/03/farewell-to-google-code.html) 50 all three Google Code projects are merged together here on GitHub as pyfakefs. 51 52