Skip to main content

Add attributes next to the original docstring

Project description

This plugin enables you to modify docstring of tests based on their attributes, the project is available on GitHub.

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:

nosetest --with-docstring-modifier --prefix=id,section --suffix=type --replace=s,S

will print

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

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

nose-docstring-modifier-0.0.2.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file nose-docstring-modifier-0.0.2.tar.gz.

File metadata

File hashes

Hashes for nose-docstring-modifier-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b35dc8d7552fda058d05b0dd45bdf20cc6e09e28b70a7f15579f90bb7b497abe
MD5 1c2b675832fadbc10331b7f7cda24809
BLAKE2b-256 24ec83c8bae0b4c4098f2cb41f295318f3f3caacdee0ad722bdccc9497c090af

See more details on using hashes here.

Supported by

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