Predictable and repeatable tempdir support.
Project description
Adds support for a predictable and repeatable temporary directory.
This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin template.
Features
Adds support for a predictable and repeatable temporary directory through the tempdir fixture which gets cleaned up in the end of the test run session(this behaviour can be disabled).
Requirements
None!
Installation
You can install “pytest-tempdir” via pip from PyPI:
$ pip install pytest-tempdir
Usage
Simply define a pytest_tempdir_basename function on your conftest.py which returns a string to define the basename or pass --tempdir-basename.
If you wish to leave the temporary directory intact for further inspection after the tests suite ends, pass --tempdir-no-clean.
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the Apache 2.0 license, “pytest-tempdir” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
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
File details
Details for the file pytest-tempdir-2015.11.4.tar.gz
.
File metadata
- Download URL: pytest-tempdir-2015.11.4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb033a0ed6074f02187e45ff91366c7188d866400ea90c9c243afb58fff9de32 |
|
MD5 | a7363847a625a620346b19a04750faf5 |
|
BLAKE2b-256 | c13713b5cdd4d78e83037b4fdd991a025415c5988e76e959f47160083cde8ec2 |