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, that uses nose-ittr plugin:
@ittr(platforms=['P1', 'P2', 'P3'])
@attr(section='MySection', type='functional+', module='MyModule', id=1)
def test_function(self):
"""
This is the original docstring
"""
for platform in self.platforms:
ok_(True)
running it with nosetest using nose-docstring-modifier plugin:
nosetests --with-docstring-modifier --prefix=id,section,platform --suffix=type --replace=('s','S')
will print
(1, MySection, P1) ThiS iS the original docString (functional+) ... ok
(1, MySection, P2) ThiS iS the original docString (functional+) ... ok
(1, MySection, P3) ThiS iS the original docString (functional+) ... ok
Note that if you hardcode the platform on docstring, you cannot get dynamic output and you’ll get the same platform even when the test runs on three different platforms.
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.
History
0.0.6 (2014-11-25)
Added ability to display only first line of docstring
Changed the way –replace called: –replace=(‘s’,’S’)
0.0.5 (2014-11-24)
HOTFIX - Fixed a bug that caused an error when running the plugin due to dependency with another upcoming plugin
0.0.4 (2014-11-06)
Code design changes
0.0.3 (2014-11-05)
Multiprocessing support
0.0.2 (2014-11-04)
Initial release
Metadata
Release files for nose-docstring-modifier 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nose-docstring-modifier-0.0.6.tar.gz | 3.6 kB | Without provenance | Details |
Release files / nose-docstring-modifier-0.0.6.tar.gz
| Download URL | nose-docstring-modifier-0.0.6.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1b8de4495ceb826998b23eb41ea754c151d101b5fd02d296d5857b6b5ecc2d1
|
|
BLAKE2b-256 checksum How to use checksums |
72e149fcc9c5880d3007d8602e6c337b973be1cf87378333cf6d0771dfad6156
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for nose-docstring-modifier 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.