Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypothesis-fspaths-0.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file hypothesis-fspaths-0.1.tar.gz.

File metadata

File hashes

Hashes for hypothesis-fspaths-0.1.tar.gz
Algorithm Hash digest
SHA256 d1124ddc2a37cb54cdaa573bb16a40841a37598c8fc7b83dd07babffc6b01368
MD5 b0656674f89707353ce78bfb3448c1ff
BLAKE2b-256 be00208e4c5be58fdc92aa7bfac82e94c524150183fc8b0ec995d70d6e0db43c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page