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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file hypothesis-fspaths-0.1.tar.gz.
File metadata
- Download URL: hypothesis-fspaths-0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1124ddc2a37cb54cdaa573bb16a40841a37598c8fc7b83dd07babffc6b01368
|
|
| MD5 |
b0656674f89707353ce78bfb3448c1ff
|
|
| BLAKE2b-256 |
be00208e4c5be58fdc92aa7bfac82e94c524150183fc8b0ec995d70d6e0db43c
|