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
File details
Details for the file pytest-trialtemp-1.0.1.tar.gz
.
File metadata
- Download URL: pytest-trialtemp-1.0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07f324423d242bac168612767facdc41d2023dcc0b490fb01444d83c6f20d3a2 |
|
MD5 | 87efac2d963528fe73a016039de7c4d4 |
|
BLAKE2b-256 | fc90acfa17e490c4beb09dcadfe5369c27a35856f0ba7dd89ad9a654bd331139 |
File details
Details for the file pytest_trialtemp-1.0.1-py2-none-any.whl
.
File metadata
- Download URL: pytest_trialtemp-1.0.1-py2-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a020cc930fec7b55cff564bff612055fb3446e1a81d1dfc5e6db247f0dbc8752 |
|
MD5 | 2ba2c64489773f34d1b82c5e3cbae351 |
|
BLAKE2b-256 | 9cabcec7714c92c45e917a8e6128e87f466c137ad0d3339b73047b0e494152b0 |