Plugin for pytest to run relevant tests by naively check if test functions contain a reference to the symbol supplied.
- Limitations:
it only looks for top level test functions, so test classes won’t be discovered
very naive check, so indirect usages of a symbol won’t be found
This trade off has been made for speed. This method is extremely fast compared to the other common method which tries to be correct by running the full test suite under coverage and checking if the function was called directly or indirectly.
Installation
pip install pytest-test-this
Usage
pytest –test-this=foo
…where foo is the name of your function, class or variable. You can write multiple symbols comma separated.
There is also a special simplified mode for users of git:
pytest –test-this-git
this will try to automatically guess the symbols to run againsts based on a git diff and run pytest-test-this againsts those symbols
Metadata
Release files for pytest-test-this 0.3.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 | Actions |
|---|---|---|---|---|
| pytest-test-this-0.3.0.tar.gz | 4.4 kB | Without provenance | Details for pytest-test-this-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_test_this-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_test_this-0.3.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / pytest-test-this-0.3.0.tar.gz
| Download URL | pytest-test-this-0.3.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae5ec35b302966818d6e640e9a9f6ef3d2f36091dde378897597c8d440464754
|
|
BLAKE2b-256 checksum How to use checksums |
85fc15d8462f6707c787234f67d19daeb6f00c4a3e93c038e386edb019d9a4b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
|
Release files / pytest_test_this-0.3.0-py3-none-any.whl
| Download URL | pytest_test_this-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
983b175bc570fca09006e362b2996c790109eaceef795d1ab9fe94684ce2e8da
|
|
BLAKE2b-256 checksum How to use checksums |
0f065ed8db3e0b0ee7e0f1dbf733090e3284666814d8cced254d2e2d714999de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
|
Security for pytest-test-this 0.3.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.