Skip to main content

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.

Metadata

Release files for pytest-trialtemp 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-trialtemp 1.0.1
File Size Uploaded
pytest-trialtemp-1.0.1.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-trialtemp 1.0.1
File Interpreter ABI Platform
pytest_trialtemp-1.0.1-py2-none-any.whl Python 2 none any Details

Total release size: 5.6 kB

Release files / pytest-trialtemp-1.0.1.tar.gz

Download URL pytest-trialtemp-1.0.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
07f324423d242bac168612767facdc41d2023dcc0b490fb01444d83c6f20d3a2
BLAKE2b-256 checksum
How to use checksums
fc90acfa17e490c4beb09dcadfe5369c27a35856f0ba7dd89ad9a654bd331139
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pytest_trialtemp-1.0.1-py2-none-any.whl

Download URL pytest_trialtemp-1.0.1-py2-none-any.whl
Size 3.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
a020cc930fec7b55cff564bff612055fb3446e1a81d1dfc5e6db247f0dbc8752
BLAKE2b-256 checksum
How to use checksums
9cabcec7714c92c45e917a8e6128e87f466c137ad0d3339b73047b0e494152b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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