py.test plugin for using the same _trial_temp working directory as trial
Project description
py.test plugin for using the same _trial_temp working directory as trial
usage
Install the plugin with pip install pytest-trialtemp and it will be used automatically when tests are run.
To disable it for a particular run, use py.test -p no:trialtemp [...] to run your tests. See pytest’s documentation for further options.
why?
I frequently use py.test to run Twisted tests written using trial. This works pretty well on its own, except trial’s temporary directory infrastructure assumes the working directory during test runs is ./_trial_temp or something similar.
In order to avoid littering my project root with annoying test-created temporary directories, I wrote this little plugin.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_trialtemp-1.0.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50f1654d3e7edf253d47ad35e76d8bdb684e1742dfa736ccac831d550d6cc0c1 |
|
MD5 | 9c64177c377ab812af034116f44da690 |
|
BLAKE2b-256 | 051324038374b82bcd44567356a2d0213739553ac226a82dd412d5983c52aff3 |