A Nose plugin to fix the way tests are described when the verbose flag (-v) is used
Project description
This is a simple Nose plugin that forces nosetests to print the full test name, rather than the docstring.
For example, given the test file `example.py`::
.. code-block:: python
class MyTestCase(TestCase):
def test_without_docstring(self):
pass
def test_with_docstring(self):
"""This is my docstring"""
pass
This plugin changes the output of `nosetests -v example.py` from::
test_without_docstring (mymodule.MyTestCase) ... ok
This is my docstring ... ok
To::
test_without_docstring (mymodule.MyTestCase) ... ok
test_with_docstring (mymodule.MyTestCase) ... ok
Installation
------------
`pip install nose-description-fixer-plugin`
For example, given the test file `example.py`::
.. code-block:: python
class MyTestCase(TestCase):
def test_without_docstring(self):
pass
def test_with_docstring(self):
"""This is my docstring"""
pass
This plugin changes the output of `nosetests -v example.py` from::
test_without_docstring (mymodule.MyTestCase) ... ok
This is my docstring ... ok
To::
test_without_docstring (mymodule.MyTestCase) ... ok
test_with_docstring (mymodule.MyTestCase) ... ok
Installation
------------
`pip install nose-description-fixer-plugin`
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file nose-descriptionfixer-0.0.1.tar.gz
.
File metadata
- Download URL: nose-descriptionfixer-0.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ce9b36c6baae5c126c1749a2e7a67e232cb87cec71e9bffefc40d1da7e29ff2 |
|
MD5 | 10e404ecd1ca5cc44f1420ae162b7c74 |
|
BLAKE2b-256 | c5dde16074c81f2a046bb5656c30c60dd7d10c41f84a74305f9766acef2cc1f7 |