[TIP] Docstrings in Test methods

Mark Sienkiewicz sienkiew at stsci.edu
Mon Nov 28 08:33:53 PST 2011

I'm not sure I see the problem.  I think there are two obvious solutions if you want to see the docstrings:

1) don't install nose_fixes

2) install nose_fixes (so you can use --test-suite-func) and also use --show-docstrings

If I understand the documentation correctly, --show-docstrings reverts to the original nose behaviour of using the first line of the docstring as the reportable test name.

Ideally, a default for a feature like this could be settable per-user, or per-file, or per-project.

I think it only really matters for use case 2 above, though.  You have to want nose_fixes for some reason, and you have to want to avoid typing --show-docstrings.

Or am I missing something?

More information about the testing-in-python mailing list