-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docstring: Add decorator to format the docstrings
Some test frameworks like nose use the docstring to output information about a test. In the case of generated tests all of them would get the same description. Add a decorator which allows formating of the docstring for each generated test function using the test values. Example: @DaTa(1,2) @format_doc def test_A(value): """Test A for value {}""" ... executed with "nosetests -v", will output: Test A for value 1 Test A for value 2 Signed-off-by: [email protected]
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters