@acdha I got this pattern going
https://gist.github.com/matthewdeanmartin/370829084fcaf4731f5c1b8d0b5ca58e
Pro:
- does the job
Cons:
- str/Path don't give hypothesis enough info to generate a valid path, so it will generate 1000s of trash ones and give up.
- not a 0 cost abstraction
I think I need some sort of Path factory/strategy that tells hypothesis, create any crazy file you want so long as it is in the tmp_path folder.