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
Close
Hashes for nose-descriptionfixer-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4250f2d44ac7029307608d5a7c3ce03e678a68c24eff0b6044220827fb892bd1 |
|
MD5 | 6c0cff7fcf90ebdd342fa6b4a9d870c8 |
|
BLAKE2b-256 | 1419c809e301ed299ba5a1a6796b6d80c8c1313ac67d683b9bdcbdcdbdeaa384 |