/hypothesis-fspaths

Hypothesis extension for generating filesystem paths

Primary LanguagePythonMIT LicenseMIT

hypothesis-fspaths

Hypothesis extension for generating filesystem paths. Anything the built-in Python function open() accepts can be generated.

Example

from hypothesis import given
from hypothesis_fspaths import fspaths

@given(fspaths())
def test_open_file(path):
    try:
        open(path).close()
    except IOError:
        pass
https://travis-ci.org/lazka/hypothesis-fspaths.svg?branch=master https://ci.appveyor.com/api/projects/status/58ooix7enbn7qdt7/branch/master?svg=true