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
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest-wholenodeid-0.1.tar.gz
.
File metadata
- Download URL: pytest-wholenodeid-0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 232ed9cfaa3ec466b51a0398a5371002e2f8c4051d5fc6a7cdc0f23fe00d5797 |
|
MD5 | 562cb0057998ca66bd7b6f6d3a6ca8dc |
|
BLAKE2b-256 | 8df1b9f7631152c87b117fcaea7112c7a7006ddf5c8ee461bfd18373d8afa36e |
File details
Details for the file pytest_wholenodeid-0.1-py2-none-any.whl
.
File metadata
- Download URL: pytest_wholenodeid-0.1-py2-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6777e0c562beb450dbef0f4912597720941a860dae97f9fa8049a70ddfdead8e |
|
MD5 | 4628d3f198009855cfcc3f290443c1b2 |
|
BLAKE2b-256 | 69be334479a6457f5289a8c488de5cb17a649fe0a0306c944a91b10fdad0b54c |