Skip to content

lazka/hypothesis-fspaths

Repository files navigation

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

image

image

About

Hypothesis extension for generating filesystem paths

Resources

License

Stars

Watchers

Forks

Packages

No packages published