Skip to main content

Pytest plugin which verifies that tests do not modify file trees.

Project description

pytest-litter

Pytest plugin that, when installed, will fail test cases which create or delete files. Tests should not modify the file tree, because it can be a cause of test pollution as well as accidental committing of files to the repo.

To use it, simply run

pip install pytest-litter

The only dependency is pytest itself.

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-litter-0.0.4.tar.gz (21.9 kB view hashes)

Uploaded Source

Built Distribution

pytest_litter-0.0.4-py3-none-any.whl (14.0 kB view hashes)

Uploaded Python 3

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