hypothesis-fspaths-0.1
توضیحات
Hypothesis extension for generating filesystem paths
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | hypothesis-fspaths-0.1 |
| نام | hypothesis-fspaths |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Christoph Reiter |
| ایمیل نویسنده | reiter.christoph@gmail.com |
| آدرس صفحه اصلی | https://github.com/lazka/hypothesis-fspaths |
| آدرس اینترنتی | https://pypi.org/project/hypothesis-fspaths/ |
| مجوز | MIT |
******************
hypothesis-fspaths
******************
`Hypothesis <https://hypothesis.readthedocs.io/en/latest/>`_ extension for
generating filesystem paths. Anything the built-in Python function ``open()``
accepts can be generated.
Example
=======
.. code:: python
from hypothesis import given
from hypothesis_fspaths import fspaths
@given(fspaths())
def test_open_file(path):
try:
open(path).close()
except IOError:
pass
.. image:: https://travis-ci.org/lazka/hypothesis-fspaths.svg?branch=master
:target: https://travis-ci.org/lazka/hypothesis-fspaths
نحوه نصب
نصب پکیج whl hypothesis-fspaths-0.1:
pip install hypothesis-fspaths-0.1.whl
نصب پکیج tar.gz hypothesis-fspaths-0.1:
pip install hypothesis-fspaths-0.1.tar.gz