This project has been archived by its maintainers, and is no longer receiving any updates.
pytest-wholenodeid
pytest-wholenodeid will print the entire node id for test failures in the header.
It turns this:
=============================================== FAILURES ===============================================
______________________________ TriggerRuleMatchTests.test_match_locale _________________________________
Traceback (most recent call last):
File "/home/willkg/mozilla/fjord/fjord/suggest/providers/trigger/tests/test_models.py", line 24, in test_match_locale
for tr_locales, feedback_locale, expected in tests:
NameError: global name 'tests' is not defined
into this:
=============================================== FAILURES ===============================================
____ fjord/suggest/providers/trigger/tests/test_models.py::TriggerRuleMatchTests::test_match_locale ____
Traceback (most recent call last):
File "/home/willkg/mozilla/fjord/fjord/suggest/providers/trigger/tests/test_models.py", line 24, in test_match_locale
for tr_locales, feedback_locale, expected in tests:
NameError: global name 'tests' is not defined
Why?
Because then you can copy and paste the node id in the header to more easily run that specific test.
Quick start
Install:
$ pip install pytest-wholenodeid
It works by default. If you don’t want wholenodeid, then you can pass --nowholenodeid as an argument to disable it.
Project details
- Code:
- Documentation:
You’re reading it
- Issue tracker:
- License:
Simplified BSD License; see LICENSE file
Metadata
Release files for pytest-wholenodeid 0.2
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-wholenodeid-0.2.tar.gz | 2.7 kB | Without provenance | Details for pytest-wholenodeid-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_wholenodeid-0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pytest_wholenodeid-0.2-py2.py3-none-any.whl |
Total release size: 7.3 kB
Release files / pytest-wholenodeid-0.2.tar.gz
| Download URL | pytest-wholenodeid-0.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bc4edaf560c8b45ac4669bb8b99d8fbbb7f6e5af8dc7727200cd4d3ef4668c2
|
|
BLAKE2b-256 checksum How to use checksums |
62bb2d0f54386bf00089375d0bbd9f21de9b92c677625c53fbaa450f82f6ffe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pytest_wholenodeid-0.2-py2.py3-none-any.whl
| Download URL | pytest_wholenodeid-0.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bdcb4df88ca182a19752ef95150c0881deaafc2c593ef67c61515894e5309206
|
|
BLAKE2b-256 checksum How to use checksums |
989621d265dda8dbedace802eecd11e97080f93ac3c4a194de1617ee245ea9fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytest-wholenodeid 0.2
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.