Skip to main content
Archived

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:

https://github.com/willkg/pytest-wholenodeid

Documentation:

You’re reading it

Issue tracker:

https://github.com/willkg/pytest-wholenodeid/issues

License:

Simplified BSD License; see LICENSE file

Download files

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

Source Distribution

pytest-wholenodeid-0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_wholenodeid-0.2-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-wholenodeid-0.2.tar.gz.

File metadata

File hashes

Hashes for pytest-wholenodeid-0.2.tar.gz
Algorithm Hash digest
SHA256 6bc4edaf560c8b45ac4669bb8b99d8fbbb7f6e5af8dc7727200cd4d3ef4668c2
MD5 748cdf5ee2a092dffec98c80e492d898
BLAKE2b-256 62bb2d0f54386bf00089375d0bbd9f21de9b92c677625c53fbaa450f82f6ffe7

See more details on using hashes here.

File details

Details for the file pytest_wholenodeid-0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_wholenodeid-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bdcb4df88ca182a19752ef95150c0881deaafc2c593ef67c61515894e5309206
MD5 1fa0d985e43d3fd7c15f711a9e41569f
BLAKE2b-256 989621d265dda8dbedace802eecd11e97080f93ac3c4a194de1617ee245ea9fb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2 This release

2 files

0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page