Skip to main content

Predictable and repeatable tempdir support.

Project description

See Build Status on Travis CI See Build Status on AppVeyor http://img.shields.io/pypi/v/pytest-tempdir.svg

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-tempdir-2015.11.6.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file pytest-tempdir-2015.11.6.tar.gz.

File metadata

File hashes

Hashes for pytest-tempdir-2015.11.6.tar.gz
Algorithm Hash digest
SHA256 53934724e1c003e48f28ccf0c8e615d85c44e3d43945802ba25bb259d6c75dab
MD5 fb49ddf7b6d32f982cc0277c9604086b
BLAKE2b-256 0b4d985cb9a2fd1537b83873cc1428743b8c436bcc61d9c965d920a8b235f957

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page