Skip to content

This plugin enables you to display attributes next to the original docstring

License

Notifications You must be signed in to change notification settings

taykey/nose-docstring-modifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enables you to modify docstring of tests based on their attributes

Installing

You can install nose-docstring-modifier plugin using pip:

$ pip install nose-docstring-modifier

Using

Given the following test function:

@attr(section='MySection', type='functional+', module='MyModule', id=1)
def test_function(self):
    """
    This is the original docstring
    """
    ok_(True)

running it with nosetest using nose-docstring-modifier plugin:

nosetests --with-docstring-modifier --prefix=id,section --suffix=type --replace=('s','S')

will print

(1, MySection) ThiS iS the original docString (functional+) ... ok

Features

  • Works with multiprocess plugin:
nosetests --processes=10 --process-restartworker with-docstring-modifier --prefix=id

spreads test run among 10 processes, appending id attribute to each test.

Authors

Authors:

Maroun Maroun

Contributors:

Tal Ben Basat

Nicole Franco

Roy Klinger

Sergey Ragatsky

Version:

0.0.6

About

This plugin enables you to display attributes next to the original docstring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages