A Pytest plugin to drop duplicated tests during collection.
Pytest by default will collect all tests from directories or files given in the command-line. For example, if you execute:
py.test tests/unit tests/
Tests from tests/unit will appear twice, because they will be collected again when pytest sees the tests directory in the command-line.
This plugin is intended for the cases where the user wants to run all tests from tests/unit first and then the rest of the tests under tests, without duplicates.
This plugin was born from the discussion taken in #1187.
This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin template.
Installation
You can install via pip from PyPI:
$ pip install pytest-drop-dup-tests
Usage
The plugin is enabled by default, no other action is necessary.
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 MIT license, “pytest-drop-dup-tests” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Metadata
Release files for pytest-drop-dup-tests 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pytest-drop-dup-tests-1.0.0.tar.gz | 5.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_drop_dup_tests-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / pytest-drop-dup-tests-1.0.0.tar.gz
| Download URL | pytest-drop-dup-tests-1.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3b9dc0ba4f2269576ed8e0907854fa656fe078aa73f3840e5dc29b772ed897c
|
|
BLAKE2b-256 checksum How to use checksums |
8497a62361ae529893b4d304f60db5816888f10bc2892e7f3739625827d57fc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.8
|
Release files / pytest_drop_dup_tests-1.0.0-py3-none-any.whl
| Download URL | pytest_drop_dup_tests-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f72308efa2d79a290313370b5ccd77b34bbdcd460856269f93881ebd5e6420c
|
|
BLAKE2b-256 checksum How to use checksums |
e4051be23308f51aafa5980959d2dcc2dba7a74aef175d0c338640a59b3ee4c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.8
|
Security for pytest-drop-dup-tests 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.